From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 374E8138350 for ; Thu, 30 Apr 2020 22:17:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43759E09BE; Thu, 30 Apr 2020 22:17:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06761E09BE for ; Thu, 30 Apr 2020 22:17:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A51273432C1 for ; Thu, 30 Apr 2020 22:17:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD7581F2 for ; Thu, 30 Apr 2020 22:17:35 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1588285046.89b22bd35232b7c4f10a8961c71f9f6d6077bf61.robbat2@gentoo> Subject: [gentoo-commits] proj/gentoo-mirrorstats:master commit in: / X-VCS-Repository: proj/gentoo-mirrorstats X-VCS-Files: mirmon-wrapper.sh X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 89b22bd35232b7c4f10a8961c71f9f6d6077bf61 X-VCS-Branch: master Date: Thu, 30 Apr 2020 22:17:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a0c95e45-bd35-4c44-85af-6bee834e25e5 X-Archives-Hash: a0e8307029a3315a6b4a4819e206c1b6 commit: 89b22bd35232b7c4f10a8961c71f9f6d6077bf61 Author: Robin H. Johnson gentoo org> AuthorDate: Thu Apr 30 22:17:26 2020 +0000 Commit: Robin H. Johnson gentoo 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 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