summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2020-04-30 15:52:13 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2020-04-30 15:52:13 -0700
commit1090b5588fa26cedc773014c9d46cdbf91ea55f7 (patch)
tree529bafcd782adfa37dd8158844384fbc32edc42c
parentmirmon-wrapper.sh: fix arg handling (diff)
downloadgentoo-mirrorstats-1090b5588fa26cedc773014c9d46cdbf91ea55f7.tar.gz
gentoo-mirrorstats-1090b5588fa26cedc773014c9d46cdbf91ea55f7.tar.bz2
gentoo-mirrorstats-1090b5588fa26cedc773014c9d46cdbf91ea55f7.zip
mirmon-wrapper.sh: always shift old args
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xmirmon-wrapper.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/mirmon-wrapper.sh b/mirmon-wrapper.sh
index 2cb6260..0340ec6 100755
--- a/mirmon-wrapper.sh
+++ b/mirmon-wrapper.sh
@@ -131,19 +131,21 @@ while [[ $# -gt 0 ]]; do
XML_SRC=$2
shift 2
;;
-
--url)
URL=$2
shift 2
;;
--debug)
DEBUG=1
+ shift
;;
--verbose)
VERBOSE=1
+ shift
;;
--help)
HELP=1
+ shift
;;
--)
# End of options