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"