diff options
author | brad kittenbrink <brad@lindenlab.com> | 2010-12-10 17:27:17 -0800 |
---|---|---|
committer | brad kittenbrink <brad@lindenlab.com> | 2010-12-10 17:27:17 -0800 |
commit | 4f9e6ff2ffcd3c277399d35e5765b8525b3e1b53 (patch) | |
tree | c316b66376f2536c20f8f465c8ffde288d778935 /indra/viewer_components/updater | |
parent | ac2253abc430093ae15708bfb582448fb36c00ed (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.
Diffstat (limited to 'indra/viewer_components/updater')
-rwxr-xr-x | indra/viewer_components/updater/scripts/linux/update_install | 8 |
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" |