From 3deaff08cd8f5e837dad6174aa917cb3699330bd Mon Sep 17 00:00:00 2001 From: sigseg5 Date: Wed, 10 Jul 2024 19:12:35 +0300 Subject: [PATCH] Fix merging of Default prompt with default value in confirm() function --- x-ui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-ui.sh b/x-ui.sh index 824e4ac9..b5bbd96b 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -60,7 +60,7 @@ fi confirm() { if [[ $# > 1 ]]; then - echo && read -p "$1 [Default$2]: " temp + echo && read -p "$1 [Default $2]: " temp if [[ x"${temp}" == x"" ]]; then temp=$2 fi