commit: 89b22bd35232b7c4f10a8961c71f9f6d6077bf61
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 30 22:17:26 2020 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 30 22:17:26 2020 +0000
URL:
https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=89b22bd3
mirmon-wrapper.sh: fix arg handling
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
mirmon-wrapper.sh | 11 ++++-------
1 file 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