From cda6b00abce0e68e353ab929b86cfaf45c3dc1c8 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Thu, 19 Jan 2023 12:08:39 +0100 Subject: [PATCH] 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. --- dracut.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2