diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-01-08 16:06:06 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-01-12 22:59:33 +0100 |
commit | be1e0c6506ed892a7e8031d69b1a7110a79070d4 (patch) | |
tree | b6e0a1de3266a62fa4d00c6c08beeaf600068c0c /functions | |
parent | a6b248d85d21b7a092d17b02e4be4e27f2227e98 (diff) | |
download | mkinitcpio-be1e0c6506ed892a7e8031d69b1a7110a79070d4.tar.gz mkinitcpio-be1e0c6506ed892a7e8031d69b1a7110a79070d4.tar.xz |
parseopts: remove superfluous continue/shift statements
Found via apron.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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() |