Better tag regexp match and more info if wrong tag

pull/2418/head
Slawomir Skowron 9 years ago
parent 5804cb2bbc
commit aafe611ddb
No known key found for this signature in database
GPG Key ID: 3A654CA6DDD1BC0C

@ -164,14 +164,14 @@ set -e
initArch initArch
initOS initOS
verifySupported verifySupported
if [[ "$1" =~ ^v[0-9].[0-9].[0-9]$ ]]; if [[ "$1" =~ ^v[0-9]+.[0-9]+.[0-9]+$ ]];
then then
TAG="$1" TAG="$1"
elif [ ! $1 ]; elif [ ! $1 ];
then then
checkLatestVersion checkLatestVersion
else else
echo "Version tag $1 not match" echo "Version tag $1 not match. Get tag from https://github.com/kubernetes/helm/releases"
exit 1 exit 1
fi fi
if ! checkHelmInstalledVersion; then if ! checkHelmInstalledVersion; then

Loading…
Cancel
Save