Update comment in function

pull/2324/head
Jorge Marin 8 years ago
parent 6adf7d59de
commit 18fc8a8539

@ -64,7 +64,7 @@ verifySupported() {
# checkLatestVersion checks the latest available version. # checkLatestVersion checks the latest available version.
checkLatestVersion() { checkLatestVersion() {
# Use the GitHub API to find the latest version for this project. # Use the GitHub releases webpage for the project to find the latest version for this project.
local latest_url="https://github.com/kubernetes/helm/releases/latest" local latest_url="https://github.com/kubernetes/helm/releases/latest"
if type "curl" > /dev/null; then if type "curl" > /dev/null; then
TAG=$(curl -SsL $latest_url | awk '/\/tag\//' | head -n 1 | cut -d '"' -f 2 | awk '{n=split($NF,a,"/");print a[n]}') TAG=$(curl -SsL $latest_url | awk '/\/tag\//' | head -n 1 | cut -d '"' -f 2 | awk '{n=split($NF,a,"/");print a[n]}')

Loading…
Cancel
Save