From cfeb6bac316e21da902a552232859493661b1ea5 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 19 Jan 2022 00:21:01 -0300 Subject: [PATCH] Update debug() --- scripts/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/common.sh b/scripts/common.sh index 29dabeb..2dcc0a1 100755 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -175,5 +175,5 @@ setLogToFile() { } debug() { - [[ -z ${logToFile+x} || $logToFile = true ]] && tee -a "$logFolder/sadedot.log" > /dev/null + [[ -n $logToFile && $logToFile = true ]] && tee -a "$logFolder/sadedot.log" > /dev/null }