variable "$default" may be empty ()

* variable "$default" may be empty

---------

Co-authored-by: Howard Wu <40033067+Howard20181@users.noreply.github.com>
This commit is contained in:
Doddddd 2024-03-06 00:45:35 +08:00 committed by GitHub
parent 63790f65e9
commit 511374f77f
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]}" $default --yesno "${o[text]}" 0 0
}
function DialogBox {