Skip to content

Commit

Permalink
fix(dracut.sh): correct --help and --version exit codes
Browse files Browse the repository at this point in the history
Both are valid options that cause regular program termination without errors, so
dracut should return 0.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Jan 27, 2023
1 parent e971c78 commit cda6b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ;;
Expand Down Expand Up @@ -845,7 +845,7 @@ while :; do
;;
--version)
long_version
exit 1
exit 0
;;
--)
shift
Expand Down

0 comments on commit cda6b00

Please sign in to comment.