variable "$default" may be empty

This commit is contained in:
Doddddd 2024-03-04 15:32:08 +08:00 committed by GitHub
parent 63790f65e9
commit d0c8fc32fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ function YesNoBox {
[ "$2" = "no" ] && default="--defaultno"
}
shift
$DIALOG --title "${o[title]}" --yesno "${o[text]}" "$default" 0 0
$DIALOG --title "${o[title]}" --yesno "${o[text]}" $default 0 0
}
function DialogBox {