From 1f5200a577be8d016a440a4255b995782567fbd2 Mon Sep 17 00:00:00 2001 From: Todd Jacobsen Date: Tue, 23 Dec 2025 12:55:51 -0700 Subject: [PATCH] feat: add macOS version check for base64 argument compatibility Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) --- scripts/install-kusion.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install-kusion.sh b/scripts/install-kusion.sh index 0f0708e..9e6ec45 100644 --- a/scripts/install-kusion.sh +++ b/scripts/install-kusion.sh @@ -29,7 +29,13 @@ for arg in "$@"; do if [[ "$os_type" == "Linux" ]]; then content=$(base64 -w 0 "$path") elif [[ "$os_type" == "Darwin" ]]; then - content=$(base64 -b 0 -i "$path") + # Check macOS version for base64 argument compatibility + os_version=$(uname -r | cut -d. -f1) + if [[ "$os_version" -ge 25 ]]; then + content=$(base64 -w 0 -i "$path") + else + content=$(base64 -b 0 -i "$path") + fi else echo "Unsupported OS: $os_type" exit 1