We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9951f53 commit b6a0ee2Copy full SHA for b6a0ee2
scripts/bump-version.sh
@@ -10,5 +10,5 @@ NEW_VERSION="${2}"
10
echo "Current version: ${OLD_VERSION}"
11
echo "Bumping version: ${NEW_VERSION}"
12
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\"/" {} \;
+perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" sentry*/Cargo.toml
+perl -pi -e "s/^(sentry.*)?version = \".*?\"/\$1version = \"$NEW_VERSION\"/" sentry*/Cargo.toml
0 commit comments