summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-08 16:06:06 +0100
committerDave Reisner <dreisner@archlinux.org>2013-01-12 22:59:33 +0100
commitbe1e0c6506ed892a7e8031d69b1a7110a79070d4 (patch)
treeb6e0a1de3266a62fa4d00c6c08beeaf600068c0c
parenta6b248d85d21b7a092d17b02e4be4e27f2227e98 (diff)
downloadmkinitcpio-be1e0c6506ed892a7e8031d69b1a7110a79070d4.tar.gz
mkinitcpio-be1e0c6506ed892a7e8031d69b1a7110a79070d4.tar.xz
parseopts: remove superfluous continue/shift statements
Found via apron. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--functions6
1 files changed, 1 insertions, 5 deletions
diff --git a/functions b/functions
index 573fbb8..5a44ac9 100644
--- a/functions
+++ b/functions
@@ -90,25 +90,21 @@ parseopts() {
return 1
else
OPTRET+=("--$opt")
- shift
- continue 2
fi
;;
1)
# --longopt=optarg
if [[ $optarg ]]; then
OPTRET+=("--$opt" "$optarg")
- shift
# --longopt optarg
elif [[ $2 ]]; then
OPTRET+=("--$opt" "$2" )
- shift 2
+ shift
else
printf "%s: option '--%s' requires an argument\n" "${0##*/}" "$opt"
OPTRET=(--)
return 1
fi
- continue 2
;;
254)
# ambiguous option -- error was reported for us by longoptmatch()