mirror of https://gitee.com/bigwinds/arangodb
added version check
This commit is contained in:
parent
f8fb41118d
commit
be712b6fb6
|
@ -1,5 +1,5 @@
|
|||
v3.4.preview1
|
||||
-------------
|
||||
v3.4.0-preview.1
|
||||
----------------
|
||||
|
||||
* preview for testing
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue