blob: a595aba2a3c3313e77381611a61dbe988cf5b1c4 [file] [log] [blame]
#!/bin/bash
set -eu
if [ $# -lt 1 ]; then
echo "usage $0 <version-name>"
exit 1;
fi
readonly VERSION_NAME=$1
shift 1
if [[ ! "$VERSION_NAME" =~ ^2\. ]]; then
echo 'Version name must begin with "2."'
exit 2
fi
if [[ "$VERSION_NAME" =~ " " ]]; then
echo "Version name must not have any spaces"
exit 3
fi