From 18b5f41e808275689903d8643731ccfca7453c57 Mon Sep 17 00:00:00 2001 From: liketosweep Date: Sun, 28 Jun 2026 16:47:47 +0000 Subject: [PATCH] fix-HELM_INSTALL_DIR instead of $PATH in get-helm-3 Signed-off-by: liketosweep --- scripts/get-helm-3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/get-helm-3 b/scripts/get-helm-3 index 5f265a52f..12f19d2cb 100755 --- a/scripts/get-helm-3 +++ b/scripts/get-helm-3 @@ -267,9 +267,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