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

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



commit 57c1bc3f1643993419bd459a42df2cf5a64a45a7
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.
    (cherry picked from commit 02148bded38663e0906a4a63f7783a245ce4fe0b)
---
 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