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

[tor-commits] [torbrowser/master] [Mac] Unbreak the --debug option



commit c3f2484f06d3b625d666ebff4634d68b3b5a9d62
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
Date:   Sun Sep 25 06:22:39 2011 -0700

    [Mac] Unbreak the --debug option
    
    Previously, it had no effect at all.
---
 src/RelativeLink/RelativeLinkOSX.sh |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/RelativeLink/RelativeLinkOSX.sh b/src/RelativeLink/RelativeLinkOSX.sh
index f448cf1..dbaa84b 100755
--- a/src/RelativeLink/RelativeLinkOSX.sh
+++ b/src/RelativeLink/RelativeLinkOSX.sh
@@ -5,11 +5,14 @@
 # In the future, we may want this to be a C binary with a custom icon but at the moment
 # it's quite simple to just use a shell script
 #
-# To run in debug mode simply pass --debug
+# To run in debug mode, simply pass -debug or --debug on the command line.
 #
 # Copyright 2010 The Tor Project.  See LICENSE for licensing information.
 
-if [ "$1" == "--debug" ]; then 
+DEBUG_TBB=0
+
+if [ "x$1" = "x--debug" -o "x$1" = "x-debug" ]; then
+	DEBUG_TBB=1
 	printf "\nDebug enabled.\n\n"
 fi
 
@@ -22,7 +25,7 @@ export DYLD_LIBRARY_PATH
 DYLD_PRINT_LIBRARIES=1
 export DYLD_PRINT_LIBRARIES
 
-if [ "${debug}" ]; then
+if [ "$DEBUG_TBB" -eq 1 ]; then
 	printf "\nStarting Vidalia now\n"
 	cd "${HOME}"
 	printf "\nLaunching Vidalia from: `pwd`\n"



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