mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Check that the version number is of the correct format
This commit is contained in:
parent
c1917b7d0a
commit
9924fb9aa1
|
@ -12,6 +12,12 @@ if [ "$VERSION" = "" ]; then
|
|||
exit 1
|
||||
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"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set up $DIRECTORY and $TAGNAME
|
||||
case "$PROJECT" in
|
||||
agb)
|
||||
|
|
Loading…
Reference in a new issue