[tbb-commits] [tor-browser-bundle/master] Don't shift unconditionally.

gk at torproject.org gk at torproject.org
Fri Aug 19 11:04:41 UTC 2016


commit 0b888ea05c97153c40a02b4c676d5291f9b3b4c8
Author: Linus Nordberg <linus at torproject.org>
Date:   Fri Aug 19 13:00:17 2016 +0200

    Don't shift unconditionally.
---
 tools/continuous-builds/park-nightly.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/continuous-builds/park-nightly.sh b/tools/continuous-builds/park-nightly.sh
index 944e3a1..dff87e2 100755
--- a/tools/continuous-builds/park-nightly.sh
+++ b/tools/continuous-builds/park-nightly.sh
@@ -7,8 +7,11 @@ if [ "$1" = "-v" ]; then
   shift
 fi
 
-DESTDIR=$1; shift
-[ -z "$DESTDIR" ] && DESTDIR=~/public_html/builds
+DESTDIR=~/public_html/builds
+if [ -n "$DESTDIR" ]; then
+    DESTDIR=$1
+    shift
+fi
 
 do_check() {
     SAVEDPWD=$PWD



More information about the tbb-commits mailing list