diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-07-01 17:11:25 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-07-01 17:11:25 -0500 |
commit | dd47cf5ed102d75fefe08588dad5ad6554478e2e (patch) | |
tree | bc462d91d19925daecb821b2100e4a03679fa1d3 /scripts | |
parent | c1b8f49c897a7f361eb2c9ac4551363e4096925b (diff) |
feat: edited usage
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/gpg-test.sh | 9 |
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) |