Skip to content

Commit 0a65f38

Browse files
committed
Fixed bump-version.sh to work with version names that have chars in them
1 parent 7ee8e77 commit 0a65f38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/bump-version.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ function replace() {
2121
grep "$2" $3 # verify that replacement was successful
2222
}
2323

24-
replace "version=\"[0-9.]+\"" "version=\"$NEW_VERSION\"" ./setup.py
25-
replace "VERSION = \"[0-9.]+\"" "VERSION = \"$NEW_VERSION\"" ./sentry_sdk/consts.py
26-
replace "release = \"[0-9.]+\"" "release = \"$NEW_VERSION\"" ./docs/conf.py
24+
replace "version=\"$OLD_VERSION\"" "version=\"$NEW_VERSION\"" ./setup.py
25+
replace "VERSION = \"$OLD_VERSION\"" "VERSION = \"$NEW_VERSION\"" ./sentry_sdk/consts.py
26+
replace "release = \"$OLD_VERSION\"" "release = \"$NEW_VERSION\"" ./docs/conf.py

0 commit comments

Comments
 (0)