Fix bug in debug()

This commit is contained in:
Santiago Lo Coco 2022-01-19 00:50:57 -03:00
parent 532b2ab640
commit 2bd6d6264a
1 changed files with 5 additions and 1 deletions

View File

@ -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
}