Skip to content

Commit

Permalink
fix: allow set-hardening-level option usage (#232)
Browse files Browse the repository at this point in the history
Was broken since 2020, fixes #230
  • Loading branch information
ThibaultDewailly authored Feb 1, 2024
1 parent a45aa40 commit 3bd4078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/hardening.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3bd4078

Please sign in to comment.