From 27edec6d5f008aca3ac25eb55908711f40cb6ee1 Mon Sep 17 00:00:00 2001 From: GoldenKiwi Date: Thu, 31 Aug 2023 14:40:27 +0200 Subject: [PATCH] fix: chore, debug logs print correctly now (#197) --- bin/hardening.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/hardening.sh b/bin/hardening.sh index 68d446b..8476ece 100755 --- a/bin/hardening.sh +++ b/bin/hardening.sh @@ -307,19 +307,19 @@ for SCRIPT in $(find "$CIS_ROOT_DIR"/bin/hardening/ -name "*.sh" | sort -V); do info "Treating $SCRIPT" if [ "$CREATE_CONFIG" = 1 ]; then - debug "$CIS_ROOT_DIR/bin/hardening/$SCRIPT --create-config-files-only" + debug "$SCRIPT --create-config-files-only" LOGLEVEL=$LOGLEVEL "$SCRIPT" --create-config-files-only "$BATCH_MODE" elif [ "$AUDIT" = 1 ]; then - debug "$CIS_ROOT_DIR/bin/hardening/$SCRIPT --audit $SUDO_MODE $BATCH_MODE" + debug "$SCRIPT --audit $SUDO_MODE $BATCH_MODE" LOGLEVEL=$LOGLEVEL "$SCRIPT" --audit "$SUDO_MODE" "$BATCH_MODE" elif [ "$AUDIT_ALL" = 1 ]; then - debug "$CIS_ROOT_DIR/bin/hardening/$SCRIPT --audit-all $SUDO_MODE $BATCH_MODE" + debug "$SCRIPT --audit-all $SUDO_MODE $BATCH_MODE" LOGLEVEL=$LOGLEVEL "$SCRIPT" --audit-all "$SUDO_MODE" "$BATCH_MODE" elif [ "$AUDIT_ALL_ENABLE_PASSED" = 1 ]; then - debug "$CIS_ROOT_DIR/bin/hardening/$SCRIPT --audit-all $SUDO_MODE $BATCH_MODE" + debug "$SCRIPT --audit-all $SUDO_MODE $BATCH_MODE" LOGLEVEL=$LOGLEVEL "$SCRIPT" --audit-all "$SUDO_MODE" "$BATCH_MODE" elif [ "$APPLY" = 1 ]; then - debug "$CIS_ROOT_DIR/bin/hardening/$SCRIPT" + debug "$SCRIPT" LOGLEVEL=$LOGLEVEL "$SCRIPT" fi