From: Antonio Alvarez Feijoo Date: Thu, 19 Jan 2023 11:08:39 +0000 (+0100) Subject: fix(dracut.sh): correct --help and --version exit codes X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cda6b00abce0e68e353ab929b86cfaf45c3dc1c8;p=thirdparty%2Fdracut.git fix(dracut.sh): correct --help and --version exit codes Both are valid options that cause regular program termination without errors, so dracut should return 0. --- diff --git a/dracut.sh b/dracut.sh index 901ed09e9..77a30a628 100755 --- a/dracut.sh +++ b/dracut.sh @@ -801,7 +801,7 @@ while :; do --fstab) use_fstab_l="yes" ;; -h | --help) long_usage - exit 1 + exit 0 ;; --bzip2) compress_l="bzip2" ;; --lzma) compress_l="lzma" ;; @@ -845,7 +845,7 @@ while :; do ;; --version) long_version - exit 1 + exit 0 ;; --) shift