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 }