also fixed the --help returns

This commit is contained in:
MisterMountain 2023-05-02 09:40:35 +02:00
parent e14f1ad7c3
commit 21885d85d5
3 changed files with 5 additions and 5 deletions

View file

@ -105,7 +105,7 @@ while test -n "$1"; do
case "$1" in
-h | --help)
print_help
exit "$STATE_OK"
exit "$STATE_UNKNOWN"
;;
-V | --version)
print_revision "$PROGNAME" "$REVISION"

View file

@ -87,11 +87,11 @@ esac
case "$cmd" in
--help)
print_help
exit "$STATE_OK"
exit "$STATE_UNKNOWN"
;;
-h)
print_help
exit "$STATE_OK"
exit "$STATE_UNKNOWN"
;;
--version)
print_revision "$PROGNAME" "$REVISION"

View file

@ -26,11 +26,11 @@ print_help() {
case "$1" in
--help)
print_help
exit "$STATE_OK"
exit "$STATE_UNKNOWN"
;;
-h)
print_help
exit "$STATE_OK"
exit "$STATE_UNKNOWN"
;;
--version)
print_revision "$PROGNAME" "$REVISION"