1
0
Fork 0

added version check

This commit is contained in:
Frank Celler 2018-08-28 00:03:02 +02:00
parent f8fb41118d
commit be712b6fb6
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
v3.4.preview1
-------------
v3.4.0-preview.1
----------------
* preview for testing

View File

@ -130,8 +130,12 @@ if [ ! -d "${ENTERPRISE_SRC_DIR}" ]; then
exit 1
fi
if echo "${VERSION}" | grep -q -- '-'; then
echo "${VERSION} mustn't contain minuses! "
VERSION_RE='^[0-9]+.[0-9]+.[0-9]+(-((alpha|beta|milestone|preview|rc).)?[0-9]+)?$'
if echo "${VERSION}" | egrep -q -- $VERSION_RE; then
echo "${VERSION} matches $VERSION_RE"
else
echo "${VERSION} does not match $VERSION_RE"
exit 1
fi