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/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/makepkg.sh.in') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index eee8a56c..be80cc0e 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1277,7 +1277,7 @@ while true; do -h|--help) usage; exit $E_OK ;; -V|--version) version; exit $E_OK ;; - --) OPT_IND=0; shift; break 2;; + --) OPT_IND=0; shift; break ;; esac shift done -- cgit v1.2.3-54-g00ecf