Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-mirrorstats:master commit in: /
Date: Thu, 30 Apr 2020 22:17:40
Message-Id: 1588285046.89b22bd35232b7c4f10a8961c71f9f6d6077bf61.robbat2@gentoo
1 commit: 89b22bd35232b7c4f10a8961c71f9f6d6077bf61
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 30 22:17:26 2020 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 22:17:26 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=89b22bd3
7
8 mirmon-wrapper.sh: fix arg handling
9
10 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
11
12 mirmon-wrapper.sh | 11 ++++-------
13 1 file changed, 4 insertions(+), 7 deletions(-)
14
15 diff --git a/mirmon-wrapper.sh b/mirmon-wrapper.sh
16 index 04be5ce..2cb6260 100755
17 --- a/mirmon-wrapper.sh
18 +++ b/mirmon-wrapper.sh
19 @@ -20,7 +20,7 @@ helpmsg() {
20 }
21
22 usage() {
23 - helpmsg "Usage: ${NAME}$(printf " --%s=..." "${OPTIONS_STR[@]}" )$(printf " --%s" "${OPTIONS_BOOL[@]}")"
24 + helpmsg "Usage: ${NAME}$(printf " --%s=..." "${OPTIONS_STR[@]}" )$(printf " [--%s]" "${OPTIONS_BOOL[@]}")"
25 exit 3
26 }
27
28 @@ -112,9 +112,9 @@ opts=$(getopt \
29
30 eval set --$opts
31
32 -MODE=''
33 -XML_SRC=''
34 -URL=''
35 +MODE=
36 +XML_SRC=
37 +URL=
38 HELP=
39 DEBUG=
40 VERBOSE=
41 @@ -138,15 +138,12 @@ while [[ $# -gt 0 ]]; do
42 ;;
43 --debug)
44 DEBUG=1
45 - break
46 ;;
47 --verbose)
48 VERBOSE=1
49 - break
50 ;;
51 --help)
52 HELP=1
53 - break
54 ;;
55 --)
56 # End of options