fix deploy script
This commit is contained in:
@@ -10,7 +10,8 @@ prompt_yes_no() {
|
||||
local choice_hint="${2:-[y/N]}"
|
||||
local answer
|
||||
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" ]]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user