commit:     1090b5588fa26cedc773014c9d46cdbf91ea55f7
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 30 22:52:13 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 30 22:52:13 2020 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=1090b558

mirmon-wrapper.sh: always shift old args

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 mirmon-wrapper.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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

Reply via email to