From 523c861f4c7f39fb265d6c06087166b3da6e209b Mon Sep 17 00:00:00 2001 From: Dmitry <98899785+mdqst@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:51:45 +0300 Subject: [PATCH] bugfix: Ensure Cross-Platform Compatibility for sed Command Update bump_version.sh (#870) --- scripts/bump_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh index 1a95050d4..2d34415b9 100755 --- a/scripts/bump_version.sh +++ b/scripts/bump_version.sh @@ -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