Skip to content

Commit

Permalink
bugfix: Ensure Cross-Platform Compatibility for sed Command Update bu…
Browse files Browse the repository at this point in the history
…mp_version.sh (#870)
  • Loading branch information
mdqst authored Dec 16, 2024
1 parent 9d6bd8c commit 523c861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ read NEW_VERSION

# If NEW_VERSION is not empty, replace the version in package.json
if [ -n "$NEW_VERSION" ]; then
sed -i '' "s/ \"version\": \"$VERSION\"/ \"version\": \"$NEW_VERSION\"/" package.json
sed -i "s/ \"version\": \"$VERSION\"/ \"version\": \"$NEW_VERSION\"/" package.json
echo "Version bumped to $NEW_VERSION"
npm i
fi
Expand Down

0 comments on commit 523c861

Please sign in to comment.