[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torbrowser/maint-2.2] [Linux] Quote another variable expansion that should be quoted



commit 02148bded38663e0906a4a63f7783a245ce4fe0b
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
Date:   Wed Aug 24 02:59:53 2011 -0400

    [Linux] Quote another variable expansion that should be quoted
    
    Otherwise, bad things can happen if TBB is in a directory whose name
    contains spaces.
---
 src/RelativeLink/RelativeLink.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/RelativeLink/RelativeLink.sh b/src/RelativeLink/RelativeLink.sh
index a6287bc..fd8ed0c 100755
--- a/src/RelativeLink/RelativeLink.sh
+++ b/src/RelativeLink/RelativeLink.sh
@@ -105,7 +105,7 @@ fi
 
 # Try to be agnostic to where we're being started from, chdir to where
 # the script is.
-mydir="$(dirname $0)"
+mydir="$(dirname "$0")"
 test -d "$mydir" && cd "$mydir"
 
 # If ${PWD} results in a zero length HOME, we can try something else...



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits