From 8ad6c7246011520c674a8e13cf6629f097d4e19b Mon Sep 17 00:00:00 2001 From: kamiya Date: Wed, 10 Jun 2026 14:37:33 +0900 Subject: [PATCH] fix: Replace bash4-only lowercase expansion with bash3.2 compatible tr ${var,,} is a bash 4.0+ feature not available in bash 3.2 (macOS default). Replace with portable POSIX-compatible tr '[:upper:]' '[:lower:]'. Fixes startup failure on macOS where /bin/bash is 3.2: lib/cli_adapter.sh: bad substitution --- lib/cli_adapter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli_adapter.sh b/lib/cli_adapter.sh index 4cc4fb7a2..f8d9faf28 100644 --- a/lib/cli_adapter.sh +++ b/lib/cli_adapter.sh @@ -26,7 +26,7 @@ CLI_ADAPTER_ALLOWED_CLIS="claude codex copilot kimi opencode antigravity" # CLI種別の互換aliasを正規名へ正規化する。 _cli_adapter_normalize_cli_type() { local cli_type="${1:-}" - cli_type="${cli_type,,}" + cli_type="$(echo "$cli_type" | tr '[:upper:]' '[:lower:]')" case "$cli_type" in gemini|agy) echo "antigravity" ;; *) echo "$cli_type" ;;