Bug 392579, quote SYMBOL_SERVER_SSH_KEY to cope with spaces in /Users/nrthomas, r=luser
authornrthomas@gmail.com
Mon, 20 Aug 2007 13:37:06 -0700
changeset 4833 22a98c8bc13b2d69fbfa65a498daffb922cb58ae
parent 4832 5d8e34ec31759ec02edb60321d28bc03275e4db6
child 4834 dcf4708784e3c12e1eaeaa8d43216c100edbfb57
push idunknown
push userunknown
push dateunknown
reviewersluser
bugs392579
milestone1.9a8pre
Bug 392579, quote SYMBOL_SERVER_SSH_KEY to cope with spaces in /Users/nrthomas, r=luser
toolkit/crashreporter/tools/upload_symbols.sh
--- a/toolkit/crashreporter/tools/upload_symbols.sh
+++ b/toolkit/crashreporter/tools/upload_symbols.sh
@@ -44,19 +44,19 @@
 # And will use the following optional environment variable if set:
 # SYMBOL_SERVER_SSH_KEY : path to a ssh private key to use
 #
 set -e
 
 : ${SYMBOL_SERVER_HOST?} ${SYMBOL_SERVER_USER?} ${SYMBOL_SERVER_PATH?} ${1?"You must specify a symbol archive to upload"}
 archive=`basename $1`
 echo "Transferring symbols... $1"
-scp -v ${SYMBOL_SERVER_SSH_KEY:+-i $SYMBOL_SERVER_SSH_KEY} $1 \
+scp -v ${SYMBOL_SERVER_SSH_KEY:+-i "$SYMBOL_SERVER_SSH_KEY"} $1 \
   ${SYMBOL_SERVER_USER}@${SYMBOL_SERVER_HOST}:${SYMBOL_SERVER_PATH}/
 echo "Unpacking symbols on remote host..."
-ssh -2 ${SYMBOL_SERVER_SSH_KEY:+-i $SYMBOL_SERVER_SSH_KEY} \
+ssh -2 ${SYMBOL_SERVER_SSH_KEY:+-i "$SYMBOL_SERVER_SSH_KEY"} \
   -l ${SYMBOL_SERVER_USER} ${SYMBOL_SERVER_HOST} \
   "set -e;
    umask 0022;
    cd ${SYMBOL_SERVER_PATH};
    unzip -o $archive;
    rm -v $archive;"
 echo "Symbol transfer completed"