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
initOS
verifySupported
if [[ "$1" =~ ^v[0-9].[0-9].[0-9]$ ]];
if [[ "$1" =~ ^v[0-9]+.[0-9]+.[0-9]+$ ]];
then
TAG="$1"
elif [ ! $1 ];
then
checkLatestVersion
else
echo "Version tag $1 not match"
echo "Version tag $1 not match. Get tag from https://github.com/kubernetes/helm/releases"
exit 1
fi
if ! checkHelmInstalledVersion; then

Loading…
Cancel
Save