Skip to content

Commit b6a0ee2

Browse files
committed
meta: Use perl for version bump
1 parent 9951f53 commit b6a0ee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bump-version.sh

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

13-
find . -name Cargo.toml -type f -exec sed -i '' -e "s/^version.*/version = \"$NEW_VERSION\"/" {} \;
14-
find . -name Cargo.toml -type f -exec sed -i '' -e "s/^\(sentry.*version = \)\"[^\"]*\"/\\1\"$NEW_VERSION\"/" {} \;
13+
perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" sentry*/Cargo.toml
14+
perl -pi -e "s/^(sentry.*)?version = \".*?\"/\$1version = \"$NEW_VERSION\"/" sentry*/Cargo.toml

0 commit comments

Comments
 (0)