Skip to content

Commit e32b19d

Browse files
authoredSep 18, 2021
release: fix release script to understand release branches (#38)
1 parent 34163c0 commit e32b19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ NUMRE="0|[1-9][0-9]*"
3838
PRERE="\-(alpha|beta|rc)\.[1-9][0-9]*"
3939

4040
# check that we are in a release branch
41-
if ! [[ "$CUR_BRANCH" =~ ^v($NUMRE)\.($NUMRE)\.($NUMRE)($PRERE)?$ ]]; then
41+
if ! [[ "$CUR_BRANCH" =~ ^v($NUMRE)\.($NUMRE)\.x$ ]]; then
4242
echo "branch: \"$CUR_BRANCH\" is not a release branch, please create a release branch in the form of vX.Y.x"
4343
exit 1
4444
fi

0 commit comments

Comments
 (0)