diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 2d8764f5..239e7d27 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -10,6 +10,5 @@ NEW_VERSION="${2}" echo "Current version: ${OLD_VERSION}" echo "Bumping version: ${NEW_VERSION}" -VERSION_RE=${VERSION//\./\\.} -find . -name Cargo.toml -type f -exec sed -i '' -e "1,/^version/ s/^version.*/version = \"${NEW_VERSION}\"/" {} \; -cargo update -p sentry +perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" Cargo.toml +perl -pi -e "s/^(sentry.*)?version = \".*?\"/\$1version = \"$NEW_VERSION\"/" integrations/sentry-actix/Cargo.toml