From aafe611ddb563ffbc921025d614e5477903233ab Mon Sep 17 00:00:00 2001 From: Slawomir Skowron Date: Tue, 9 May 2017 21:49:38 +0200 Subject: [PATCH] Better tag regexp match and more info if wrong tag --- scripts/get | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get b/scripts/get index a8f0414a3..9b6228b33 100755 --- a/scripts/get +++ b/scripts/get @@ -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