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) l)
checkForDependencies "libnewt" checkForDependencies "libnewt"
setDialogBox "whiptail" setDialogBox "whiptail"
setDebugToFile false setDebugToFile true
;; ;;
?) ?)
printf '%s: invalid option - '\''%s'\'\\n "${0##*/}" "$OPTARG" printf '%s: invalid option - '\''%s'\'\\n "${0##*/}" "$OPTARG"

View File

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