summaryrefslogtreecommitdiffstats
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorRafael Ascensão <rafa.almas@gmail.com>2018-05-01 18:54:04 +0200
committerAllan McRae <allan@archlinux.org>2018-05-12 13:09:37 +0200
commitfa8b99189e9f2035a81c8ff8275894b61dc0bce7 (patch)
treec01b15da2861217023229d51217a14247bb97411 /scripts/makepkg.sh.in
parent77986af9b7ae9b2cc701a30bcc1cac51b6f1b5be (diff)
downloadpacman-fa8b99189e9f2035a81c8ff8275894b61dc0bce7.tar.gz
pacman-fa8b99189e9f2035a81c8ff8275894b61dc0bce7.tar.xz
remove unneeded break argument from option parsing
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 <rafa.almas@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
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