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

erinn at torproject.org erinn at torproject.org
Sun Aug 28 12:10:38 UTC 2011


commit 02148bded38663e0906a4a63f7783a245ce4fe0b
Author: Robert Ransom <rransom.8774 at gmail.com>
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...





More information about the tor-commits mailing list