diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-11-25 06:14:59 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-11-26 02:08:57 +0100 |
commit | 5bce429b600c6ae7443b7c6c0d8d3133e01ee091 (patch) | |
tree | c754592d61a9e232dab6764a3fa3c816dee50297 /lsinitcpio | |
parent | 8155250bcdce4737a0fdb1d3009d9878f61ee324 (diff) | |
download | mkinitcpio-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-x | lsinitcpio | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |