From 5bce429b600c6ae7443b7c6c0d8d3133e01ee091 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 25 Nov 2012 00:14:59 -0500 Subject: lsinitcpio: use compound command for parseopts exec Pedantic, but at least this makes us consistent with mkinitcpio. Signed-off-by: Dave Reisner --- lsinitcpio | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-24-g4f1b