In get script, use specified path to helm binary for helm version check

Signed-off-by: Steven Cipriano <cipriano@squareup.com>
pull/6367/head
Steven Cipriano 5 years ago
parent 3ed073b2e0
commit eeff9079b8

@ -94,7 +94,7 @@ checkDesiredVersion() {
# if it needs to be changed.
checkHelmInstalledVersion() {
if [[ -f "${HELM_INSTALL_DIR}/${PROJECT_NAME}" ]]; then
local version=$(helm version -c | grep '^Client' | cut -d'"' -f2)
local version=$("${HELM_INSTALL_DIR}/${PROJECT_NAME}" version -c | grep '^Client' | cut -d'"' -f2)
if [[ "$version" == "$TAG" ]]; then
echo "Helm ${version} is already ${DESIRED_VERSION:-latest}"
return 0

Loading…
Cancel
Save