We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51635b9 commit b9ce989Copy full SHA for b9ce989
tools/prepare_release.sh
@@ -23,8 +23,8 @@ if git rev-parse "$VERSION" >/dev/null 2>&1; then
23
fi
24
25
next_version=""
26
-if [[ "$VERSION" =~ "alpha" ]] || [[ "$VERSION" =~ "beta" ]]|| [[ "$VERSION" =~ "M" ]]; then
27
- next_version=$(echo "$VERSION" | sed 's/-.*//')
+if [[ "$VERSION" =~ -(alpha|beta|M|rc)[0-9]*$ ]]; then
+ next_version="${VERSION%%-*}"
28
29
30
mvn versions:set -DnewVersion=$VERSION versions:commit
0 commit comments