diff --git a/scripts/common.sh b/scripts/common.sh index 2dcc0a1..96b2b35 100755 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -175,5 +175,9 @@ setLogToFile() { } debug() { - [[ -n $logToFile && $logToFile = true ]] && tee -a "$logFolder/sadedot.log" > /dev/null + if [[ -n $logToFile && $logToFile = true ]]; then + tee -a "$logFolder/sadedot.log" > /dev/null + else + tee > /dev/null + fi }