Fix bug in debug()

This commit is contained in:
Santiago Lo Coco 2022-01-09 21:13:14 -03:00
parent 7314286995
commit 772361e3d4
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ checkParameters() {
l)
checkForDependencies "libnewt"
setDialogBox "whiptail"
setDebugToFile false
setDebugToFile true
;;
?)
printf '%s: invalid option - '\''%s'\'\\n "${0##*/}" "$OPTARG"

View File

@ -164,5 +164,5 @@ setDebugToFile() {
}
debug() {
[ $debugFlagToFile = true ] && tee -a CocoRice.log > /dev/null
[ -z ${debugFlagToFile+x} ] && [ $debugFlagToFile = true ] && tee -a CocoRice.log > /dev/null
}