From e9c8db9950f132b144b29aa6a5aefbb3fa572cf4 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 16 Apr 2026 16:43:21 +0800 Subject: [PATCH] fix bootstrap script for macos bash --- scripts/bootstrap-local.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bootstrap-local.sh b/scripts/bootstrap-local.sh index 1fe346ee..042052ae 100755 --- a/scripts/bootstrap-local.sh +++ b/scripts/bootstrap-local.sh @@ -198,7 +198,7 @@ prompt_yes_no() { while true; do printf '%s %s: ' "$label" "$prompt" >"$PROMPT_OUTPUT" IFS= read -r answer <"$PROMPT_INPUT" || true - answer="${answer,,}" + answer="$(printf '%s' "$answer" | tr '[:upper:]' '[:lower:]')" if [[ -z "$answer" ]]; then answer="$default_value" fi