Fix merging of Default prompt with default value in confirm() function

This commit is contained in:
sigseg5
2024-07-10 19:12:35 +03:00
parent 689b462a5f
commit 3deaff08cd

View File

@@ -60,7 +60,7 @@ fi
confirm() { confirm() {
if [[ $# > 1 ]]; then if [[ $# > 1 ]]; then
echo && read -p "$1 [Default$2]: " temp echo && read -p "$1 [Default $2]: " temp
if [[ x"${temp}" == x"" ]]; then if [[ x"${temp}" == x"" ]]; then
temp=$2 temp=$2
fi fi