From edfb371b4c68d18d67353e83ebcea76dda41e1b1 Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Sat, 7 Mar 2026 20:38:08 +0100 Subject: [PATCH] fix: make release script sed portable for Linux CI macOS sed requires -i '' while GNU sed requires -i without argument. Detect OS with uname to use the correct syntax. Co-Authored-By: Claude Opus 4.6 --- scripts/release.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 4cec68f..b966b56 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -62,7 +62,11 @@ npm version "$BUMP" -m "chore: bump version to %s" --no-git-tag-version NEW_VERSION=$(node -p "require('./package.json').version") # Update version in marketing website -sed -i '' "s|v[^<]*|v$NEW_VERSION|" website/index.html +if [[ "$(uname)" == "Darwin" ]]; then + sed -i '' "s|v[^<]*|v$NEW_VERSION|" website/index.html +else + sed -i "s|v[^<]*|v$NEW_VERSION|" website/index.html +fi git add package.json website/index.html git commit -m "chore: bump version to $NEW_VERSION"