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