From b994ca11a71e8574ee12f74e1aacde67864afb75 Mon Sep 17 00:00:00 2001 From: Thibault Ayanides Date: Mon, 30 Nov 2020 15:10:39 +0100 Subject: [PATCH] FIX(main): fix small bug in main The bug (introduced in 2.1-2) leaded to an error in the test that evaluates forcedstatus --- lib/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.sh b/lib/main.sh index 7842ffc..eb7fe43 100644 --- a/lib/main.sh +++ b/lib/main.sh @@ -69,7 +69,7 @@ if ! [ -r $CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg ] ; then fi -if [ $forcedstatus = "createconfig" ]; then +if [ "$forcedstatus" = "createconfig" ] ; then debug "$CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg has been created" exit 0 fi