[tor-commits] [torbrowser/master] [Linux] Quote another variable expansion that should be quoted
erinn at torproject.org
erinn at torproject.org
Sun Oct 23 23:18:27 UTC 2011
commit 57c1bc3f1643993419bd459a42df2cf5a64a45a7
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.
(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...
More information about the tor-commits
mailing list