release/script: allow RC release tags

Change-Id: I635f4579e990b638c6579318dee632dce15e3cf1
This commit is contained in:
littleskunk 2019-12-19 15:26:19 +01:00 committed by Egon Elbre
parent 9618959f1d
commit 6861f28bbf

View File

@ -19,8 +19,8 @@ set -o pipefail
VERSION="${1-}"
if ! [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "usage: $0 vMAJOR.MINOR.PATCH"
if ! [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc+(-.*)?)?+$ ]]; then
echo "usage: $0 vMAJOR.MINOR.PATCH[-rc[-*]]"
exit 1
fi