diff --git a/scripts/common.sh b/scripts/common.sh index fdb888e..54b8659 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -164,5 +164,5 @@ setDebugToFile() { } debug() { - [ -n ${debugFlagToFile+x} ] && [ $debugFlagToFile = true ] && tee -a CocoRice.log > /dev/null + [[ -z ${debugFlagToFile+x} || $debugFlagToFile = true ]] && tee -a CocoRice.log > /dev/null }