]> git.lizzy.rs Git - rust.git/commitdiff
install: Fix the install.sh script to work with spaces
authorBrian Anderson <banderson@mozilla.com>
Mon, 29 Sep 2014 22:29:57 +0000 (15:29 -0700)
committerBrian Anderson <banderson@mozilla.com>
Mon, 29 Sep 2014 22:29:57 +0000 (15:29 -0700)
Makes it work on windows

src/etc/install.sh

index c949743ea75949f4bd84b4e1b6812b391ec7f5d9..4f43b1ed130337afbfcbda523d92c750fe96f714 100644 (file)
@@ -325,7 +325,7 @@ then
     if [ -z "${CFG_UNINSTALL}" ]
     then
         msg "verifying platform can run binaries"
-        export $CFG_LD_PATH_VAR="${CFG_SRC_DIR}/lib":$CFG_OLD_LD_PATH_VAR
+        export $CFG_LD_PATH_VAR="${CFG_SRC_DIR}/lib:$CFG_OLD_LD_PATH_VAR"
         "${CFG_SRC_DIR}/bin/rustc" --version > /dev/null
         if [ $? -ne 0 ]
         then
@@ -489,7 +489,7 @@ then
     "${CFG_PREFIX}/bin/rustc" --version 2> /dev/null 1> /dev/null
     if [ $? -ne 0 ]
     then
-        export $CFG_LD_PATH_VAR="${CFG_PREFIX}/lib":$CFG_OLD_LD_PATH_VAR
+        export $CFG_LD_PATH_VAR="${CFG_PREFIX}/lib:$CFG_OLD_LD_PATH_VAR"
         "${CFG_PREFIX}/bin/rustc" --version > /dev/null
         if [ $? -ne 0 ]
         then