mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Check version number is of the correct format
This commit is contained in:
parent
9924fb9aa1
commit
ba58d3bf27
|
@ -13,8 +13,8 @@ if [ "$VERSION" = "" ]; then
|
|||
fi
|
||||
|
||||
# Check the format of version
|
||||
if [ ! "$(echo "$VERSION" | grep -E "[0-9]+\.[0-9]+\.[0-9]+")" ]; then
|
||||
echo "Version must be of the form x.y.z"
|
||||
if [ ! "$(echo "$VERSION" | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$")" ]; then
|
||||
echo "Version must be of the form x.y.z, got $VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue