Skip to content

Commit

Permalink
variable "$default" may be empty (#781)
Browse files Browse the repository at this point in the history
* variable "$default" may be empty

---------

Co-authored-by: Howard Wu <40033067+Howard20181@users.noreply.github.com>
  • Loading branch information
Doddddd and Howard20181 committed Mar 5, 2024
1 parent 63790f6 commit 511374f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 511374f

Please sign in to comment.