From d0c8fc32fa5420585cdf007fd7b766205de9927e Mon Sep 17 00:00:00 2001 From: Doddddd <88972478+Doddddd@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:32:08 +0800 Subject: [PATCH 1/2] variable "$default" may be empty --- scripts/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run.sh b/scripts/run.sh index 8b708584fe..4baaec0eb3 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]}" --yesno "${o[text]}" $default 0 0 } function DialogBox { From 60d9de265ba2f50a46a02e1ff8acd7798ecc5e85 Mon Sep 17 00:00:00 2001 From: Howard Wu <40033067+Howard20181@users.noreply.github.com> Date: Wed, 6 Mar 2024 00:44:49 +0800 Subject: [PATCH 2/2] Update run.sh --- scripts/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run.sh b/scripts/run.sh index 4baaec0eb3..e8d6b48d5b 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 {