8000
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 f685998 commit 51e27c4Copy full SHA for 51e27c4
scripts/bump-version.sh
@@ -11,12 +11,10 @@ echo "Current version: $OLD_VERSION"
11
echo "Bumping version: $NEW_VERSION"
12
13
function replace() {
14
- grep "$1" $3
15
! grep "$2" $3
16
-
17
perl -i -pe "s/$1/$2/g" $3
18
grep "$2" $3 # verify that replacement was successful
19
}
20
21
-replace "version=\"$OLD_VERSION\"" "version=\"$NEW_VERSION\"" ./setup.py
22
-replace "VERSION = \"$OLD_VERSION\"" "VERSION = \"$NEW_VERSION\"" ./sentry_sdk/consts.py
+replace "version=\"[0-9.]+\"" "version=\"$NEW_VERSION\"" ./setup.py
+replace "VERSION = \"[0-9.]+\"" "VERSION = \"$NEW_VERSION\"" ./sentry_sdk/consts.py
0 commit comments