From 3bd4078e70487cb4d4813c192f6e3925c1b43ab1 Mon Sep 17 00:00:00 2001 From: GoldenKiwi Date: Thu, 1 Feb 2024 17:09:35 +0100 Subject: [PATCH] fix: allow set-hardening-level option usage (#232) Was broken since 2020, fixes #230 --- bin/hardening.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hardening.sh b/bin/hardening.sh index 7a8b9d4..3420aac 100755 --- a/bin/hardening.sh +++ b/bin/hardening.sh @@ -192,7 +192,7 @@ while [[ $# -gt 0 ]]; do done # if no RUN_MODE was passed, usage and quit -if [ "$AUDIT" -eq 0 ] && [ "$AUDIT_ALL" -eq 0 ] && [ "$AUDIT_ALL_ENABLE_PASSED" -eq 0 ] && [ "$APPLY" -eq 0 ] && [ "$CREATE_CONFIG" -eq 0 ]; then +if [ "$AUDIT" -eq 0 ] && [ "$AUDIT_ALL" -eq 0 ] && [ "$AUDIT_ALL_ENABLE_PASSED" -eq 0 ] && [ "$APPLY" -eq 0 ] && [ "$CREATE_CONFIG" -eq 0 ] && [ "$SET_HARDENING_LEVEL" -eq 0 ]; then usage fi