diff options
author | 2020-04-30 15:17:26 -0700 | |
---|---|---|
committer | 2020-04-30 15:17:26 -0700 | |
commit | 89b22bd35232b7c4f10a8961c71f9f6d6077bf61 (patch) | |
tree | 6917769cd6012c95c82be97e75a30e539eb8900d | |
parent | mirmon: explicitly use --quiet for cronjobs (diff) | |
download | gentoo-mirrorstats-89b22bd35232b7c4f10a8961c71f9f6d6077bf61.tar.gz gentoo-mirrorstats-89b22bd35232b7c4f10a8961c71f9f6d6077bf61.tar.bz2 gentoo-mirrorstats-89b22bd35232b7c4f10a8961c71f9f6d6077bf61.zip |
mirmon-wrapper.sh: fix arg handling
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | mirmon-wrapper.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mirmon-wrapper.sh b/mirmon-wrapper.sh index 04be5ce..2cb6260 100755 --- a/mirmon-wrapper.sh +++ b/mirmon-wrapper.sh @@ -20,7 +20,7 @@ helpmsg() { } usage() { - helpmsg "Usage: ${NAME}$(printf " --%s=..." "${OPTIONS_STR[@]}" )$(printf " --%s" "${OPTIONS_BOOL[@]}")" + helpmsg "Usage: ${NAME}$(printf " --%s=..." "${OPTIONS_STR[@]}" )$(printf " [--%s]" "${OPTIONS_BOOL[@]}")" exit 3 } @@ -112,9 +112,9 @@ opts=$(getopt \ eval set --$opts -MODE='' -XML_SRC='' -URL='' +MODE= +XML_SRC= +URL= HELP= DEBUG= VERBOSE= @@ -138,15 +138,12 @@ while [[ $# -gt 0 ]]; do ;; --debug) DEBUG=1 - break ;; --verbose) VERBOSE=1 - break ;; --help) HELP=1 - break ;; --) # End of options |