From 511374f77fe82b6283026d1b29910d5c08868f6e Mon Sep 17 00:00:00 2001 From: Doddddd <88972478+Doddddd@users.noreply.github.com> Date: Wed, 6 Mar 2024 00:45:35 +0800 Subject: [PATCH] variable "$default" may be empty (#781) * variable "$default" may be empty --------- Co-authored-by: Howard Wu <40033067+Howard20181@users.noreply.github.com> --- scripts/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run.sh b/scripts/run.sh index 8b70858..e8d6b48 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -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 {