From fa8b99189e9f2035a81c8ff8275894b61dc0bce7 Mon Sep 17 00:00:00 2001 From: Rafael Ascensão Date: Tue, 1 May 2018 17:54:04 +0100 Subject: remove unneeded break argument from option parsing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some scripts are using `break 2` to break out of the option parsing loop. Since a single `break` is sufficient in these cases, remove the extra argument. Signed-off-by: Rafael Ascensão Signed-off-by: Allan McRae --- scripts/pacman-key.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/pacman-key.sh.in') diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in index 060d8369..01e0bd5e 100644 --- a/scripts/pacman-key.sh.in +++ b/scripts/pacman-key.sh.in @@ -557,7 +557,7 @@ while (( $# )); do -h|--help) usage; exit 0 ;; -V|--version) version; exit 0 ;; - --) shift; break 2 ;; + --) shift; break ;; esac shift done -- cgit v1.2.3-24-g4f1b