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

[tor-commits] [tor-browser-bundle/hardened-builds] Don't shift unconditionally.



commit c1d4e1f132cbe239b6586b456822017a5276f7ad
Author: Linus Nordberg <linus@xxxxxxxxxxxxxx>
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

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