Fix bug in debug()
This commit is contained in:
parent
7314286995
commit
772361e3d4
|
@ -34,7 +34,7 @@ checkParameters() {
|
|||
l)
|
||||
checkForDependencies "libnewt"
|
||||
setDialogBox "whiptail"
|
||||
setDebugToFile false
|
||||
setDebugToFile true
|
||||
;;
|
||||
?)
|
||||
printf '%s: invalid option - '\''%s'\'\\n "${0##*/}" "$OPTARG"
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue