aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gpg-test.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/gpg-test.sh b/scripts/gpg-test.sh
index c3f454c..f23b83d 100644
--- a/scripts/gpg-test.sh
+++ b/scripts/gpg-test.sh
@@ -1,5 +1,5 @@
-# NOTE: This requires GNU getopt. On Mac OS X and FreeBSD, you have to install this
-# separately; see below.
+#!/usr/bin/env bash
+
TEMP=$(getopt -o hvdsea: --long help,verbose,debug,signature,encryption,authentication \
-n 'javawrap' -- "$@")
@@ -8,10 +8,9 @@ if [ $? != 0 ]; then
exit 1
fi
-# Note the quotes around `$TEMP': they are essential!
eval set -- "$TEMP"
-help() {
+usage() {
cat <<EOF
usage: $0 [OPTIONS]
@@ -34,7 +33,7 @@ ALL=true
while true; do
case "$1" in
-h | --help)
- help
+ usage
exit 0
;;
-v | --verbose)