Skip to content

Commit 5bbfe4d

Browse files
committed
fix: Fix bump script
1 parent 6a8943f commit 5bbfe4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/bump-version.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ NEW_VERSION="${2}"
1010
echo "Current version: ${OLD_VERSION}"
1111
echo "Bumping version: ${NEW_VERSION}"
1212

13-
VERSION_RE=${VERSION//\./\\.}
14-
find . -name Cargo.toml -type f -exec sed -i '' -e "1,/^version/ s/^version.*/version = \"${NEW_VERSION}\"/" {} \;
13+
perl -pi -e "s/^version = \".*\"/version = \"$NEW_VERSION\"/" Cargo.toml
1514
cargo update -p sentry

0 commit comments

Comments
 (0)