fix deploy script

This commit is contained in:
irving
2025-11-04 22:08:00 -05:00
parent 2857f2057d
commit 98bbf219f3

View File

@@ -10,7 +10,8 @@ prompt_yes_no() {
local choice_hint="${2:-[y/N]}" local choice_hint="${2:-[y/N]}"
local answer local answer
read -r -p "$prompt $choice_hint " answer || true read -r -p "$prompt $choice_hint " answer || true
answer="${answer:-}"; answer="${answer,,}" answer="${answer:-}"
answer="$(printf '%s' "$answer" | tr '[:upper:]' '[:lower:]')"
[[ "$answer" == "y" || "$answer" == "yes" ]] [[ "$answer" == "y" || "$answer" == "yes" ]]
} }