diff --git a/scripts/get-helm-3 b/scripts/get-helm-3 index a73b3da2a..7d43e56cd 100755 --- a/scripts/get-helm-3 +++ b/scripts/get-helm-3 @@ -270,9 +270,9 @@ fail_trap() { # testVersion tests the installed client to make sure it is working. testVersion() { set +e - HELM="$(command -v $BINARY_NAME)" - if [ "$?" = "1" ]; then - echo "$BINARY_NAME not found. Is $HELM_INSTALL_DIR on your "'$PATH?' + HELM="$HELM_INSTALL_DIR/$BINARY_NAME" + if [ ! -x "$HELM" ]; then + echo "$BINARY_NAME not found or not executable at $HELM_INSTALL_DIR/$BINARY_NAME" exit 1 fi set -e