Fix bug in debug()
This commit is contained in:
parent
532b2ab640
commit
2bd6d6264a
|
@ -175,5 +175,9 @@ setLogToFile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
debug() {
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue