[tor-commits] [bridgedb/develop] Fix scripts/make-ssl-cert to use `exit 1` after wrong number of args.
isis at torproject.org
isis at torproject.org
Wed May 28 21:50:18 UTC 2014
commit 2100e35252b1e828c173f3a2b38d364d8bfcc015
Author: Isis Lovecruft <isis at torproject.org>
Date: Tue May 20 18:12:55 2014 +0000
Fix scripts/make-ssl-cert to use `exit 1` after wrong number of args.
---
scripts/make-ssl-cert | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/make-ssl-cert b/scripts/make-ssl-cert
index ea2fc39..ce8f7c2 100755
--- a/scripts/make-ssl-cert
+++ b/scripts/make-ssl-cert
@@ -40,7 +40,8 @@ function usage () {
printf "for automation and CI tests."
printf "\n"
}
-if test "$#" -gt "1" ; then usage ; fi
+
+if test "$#" -ge 1 ; then usage ; exit 1 ; fi
# Go to the toplevel directory of the BridgeDB repo:
cd $REPO_PATH
More information about the tor-commits
mailing list