Skip to content

Commit 210755a

Browse files
committed
fix: Correctly fix the release script
1 parent a6337d3 commit 210755a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/bump-version.sh

Lines changed: 2 additions & 3 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}\"/" {} \;
15-
cargo update -p sentry
13+
perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" Cargo.toml
14+
perl -pi -e "s/^(sentry.*)?version = \".*?\"/\$1version = \"$NEW_VERSION\"/" integrations/sentry-actix/Cargo.toml

0 commit comments

Comments
 (0)