Changeset 2972


Ignore:
Timestamp:
Apr 5, 2020 7:46:10 PM (3 months ago)
Author:
unxusr
Message:

protect special chars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r2971 r2972  
    117117      echo "# Wrapper to launch CLP and set the library path in Linux" > bin/clp
    118118      echo "SCRIPTPATH=\"$( cd \"$(dirname \"$0\")\" >/dev/null 2>&1 ; pwd -P )\"" >> bin/clp
    119       echo "LIB_PATH=$(echo $SCRIPTPATH | sed -e 's/\/bin$/\/lib/g')" >> bin/clp
    120       echo "LIB_PATH=$(echo $LIB_PATH | sed -e 's/\/bin\/$/\/lib/g')" >> bin/clp
    121       echo "OLD_LP=$LD_LIBRARY_PATH" >> bin/clp
    122       echo "export LD_LIBRARY_PATH=$LIB_PATH:$LD_LIBRARY_PATH" >> bin/clp
    123       echo "${SCRIPTPATH}/clp.bin $@" >> bin/clp
     119      echo "LIB_PATH=\$(echo \$SCRIPTPATH | sed -e 's/\/bin\$/\/lib/g')" >> bin/clp
     120      echo "LIB_PATH=\$(echo \$LIB_PATH | sed -e 's/\/bin\/\$/\/lib/g')" >> bin/clp
     121      echo "OLD_LP=\$LD_LIBRARY_PATH" >> bin/clp
     122      echo "export LD_LIBRARY_PATH=\$LIB_PATH:\$LD_LIBRARY_PATH" >> bin/clp
     123      echo "\${SCRIPTPATH}/clp.bin $@" >> bin/clp
    124124      echo "export LD_LIBRARY_PATH=$OLD_LP" >> bin/clp
    125       echo "exit $?" >> bin/clp
     125      echo "exit \$?" >> bin/clp
    126126      chmod a+rx bin/clp
    127127    fi
Note: See TracChangeset for help on using the changeset viewer.