Skip to content

Commit

Permalink
fix: Correctly fix the release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Sep 17, 2018
1 parent a6337d3 commit 210755a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 210755a

Please sign in to comment.