Merge pull request #1355 from sigseg5/main

Fix "merging" of "Default" prompt with default value in `confirm()` function
This commit is contained in:
Alireza Ahmadi
2024-07-10 22:02:06 +02:00
committed by GitHub

View File

@@ -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