small release script fix

This commit is contained in:
Scott Lamb 2021-03-12 12:29:34 -08:00
parent 2d4e7e5878
commit 54aef17731

View File

@ -20,7 +20,7 @@ set_latest() {
} }
version="$(git describe --dirty)" version="$(git describe --dirty)"
if [[ ! "${version}" =~ v[0-9]+\.[0-9]+\.[0-9]+-dirty ]]; then if [[ ! "${version}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Expected a vX.Y.Z version tag, got ${version}." >&2 echo "Expected a vX.Y.Z version tag, got ${version}." >&2
exit 1 exit 1
fi fi