8000 fix: Dont rely on old_version in bump-version.sh · etherscan-io/sentry-python@51e27c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51e27c4

Browse files
committed
fix: Dont rely on old_version in bump-version.sh
1 parent f685998 commit 51e27c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/bump-version.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ echo "Current version: $OLD_VERSION"
1111
echo "Bumping version: $NEW_VERSION"
1212

1313
function replace() {
14-
grep "$1" $3
1514
! grep "$2" $3
16-
1715
perl -i -pe "s/$1/$2/g" $3
1816
grep "$2" $3 # verify that replacement was successful
1917
}
2018

21-
replace "version=\"$OLD_VERSION\"" "version=\"$NEW_VERSION\"" ./setup.py
22-
replace "VERSION = \"$OLD_VERSION\"" "VERSION = \"$NEW_VERSION\"" ./sentry_sdk/consts.py
19+
replace "version=\"[0-9.]+\"" "version=\"$NEW_VERSION\"" ./setup.py
20+
replace "VERSION = \"[0-9.]+\"" "VERSION = \"$NEW_VERSION\"" ./sentry_sdk/consts.py

0 commit comments

Comments
 (0)
0