|
|
@ -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
|
|
|
|