From a08b71adaef5cac0ef3a38ce6f3111f34db1821d Mon Sep 17 00:00:00 2001 From: "thibault.dewailly" Date: Thu, 1 Feb 2024 14:54:09 +0000 Subject: [PATCH] fix: allow set-hardening-level option usage 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