summaryrefslogtreecommitdiffstats
path: root/lsinitcpio
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-25 06:14:59 +0100
committerDave Reisner <dreisner@archlinux.org>2012-11-26 02:08:57 +0100
commit5bce429b600c6ae7443b7c6c0d8d3133e01ee091 (patch)
treec754592d61a9e232dab6764a3fa3c816dee50297 /lsinitcpio
parent8155250bcdce4737a0fdb1d3009d9878f61ee324 (diff)
downloadmkinitcpio-5bce429b600c6ae7443b7c6c0d8d3133e01ee091.tar.gz
mkinitcpio-5bce429b600c6ae7443b7c6c0d8d3133e01ee091.tar.xz
lsinitcpio: use compound command for parseopts exec
Pedantic, but at least this makes us consistent with mkinitcpio. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'lsinitcpio')
-rwxr-xr-xlsinitcpio4
1 files changed, 1 insertions, 3 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 1357c92..a31733d 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -174,9 +174,7 @@ analyze_image() {
_opt_short='achlnVvx'
_opt_long=('analyze' 'help' 'list' 'nocolor' 'showconfig' 'version' 'verbose' 'extract')
-if ! parseopts "$_opt_short" "${_opt_long[@]}" -- "$@"; then
- exit 1
-fi
+parseopts "$_opt_short" "${_opt_long[@]}" -- "$@" || exit
set -- "${OPTRET[@]}"
unset _opt_short _opt_long OPTRET