summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrad kittenbrink <brad@lindenlab.com>2010-12-10 17:27:17 -0800
committerbrad kittenbrink <brad@lindenlab.com>2010-12-10 17:27:17 -0800
commit4f9e6ff2ffcd3c277399d35e5765b8525b3e1b53 (patch)
treec316b66376f2536c20f8f465c8ffde288d778935
parentac2253abc430093ae15708bfb582448fb36c00ed (diff)
Defensive coding for linux updater script for consistency with alain's work on the mac script.
Should be safer if the user is installing to a path with spaces in it.
-rwxr-xr-xindra/viewer_components/updater/scripts/linux/update_install8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/viewer_components/updater/scripts/linux/update_install b/indra/viewer_components/updater/scripts/linux/update_install
index fef5ef7d09..a271926e25 100755
--- a/indra/viewer_components/updater/scripts/linux/update_install
+++ b/indra/viewer_components/updater/scripts/linux/update_install
@@ -1,10 +1,10 @@
#! /bin/bash
-INSTALL_DIR=$(cd "$(dirname $0)/.." ; pwd)
-export LD_LIBRARY_PATH=$INSTALL_DIR/lib
+INSTALL_DIR=$(cd "$(dirname "$0")/.." ; pwd)
+export LD_LIBRARY_PATH="$INSTALL_DIR/lib"
bin/linux-updater.bin --file "$1" --dest "$INSTALL_DIR" --name "Second Life Viewer 2" --stringsdir "$INSTALL_DIR/skins/default/xui/en" --stringsfile "strings.xml"
if [ $? -ne 0 ]
- then touch $2
+ then touch "$2"
fi
-rm -f $1
+rm -f "$1"