From c35cd61664379aa030a9654efc5d793e434b3063 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 30 Jun 2023 11:11:29 +0800 Subject: [PATCH] fix: add $HELM_INSTALL_DIR to testVersion Signed-off-by: adam --- scripts/get-helm-3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get-helm-3 b/scripts/get-helm-3 index 31678a177..2207ab626 100755 --- a/scripts/get-helm-3 +++ b/scripts/get-helm-3 @@ -261,7 +261,7 @@ fail_trap() { # testVersion tests the installed client to make sure it is working. testVersion() { set +e - HELM="$(command -v $BINARY_NAME)" + HELM="$(command -v $HELM_INSTALL_DIR/$BINARY_NAME)" if [ "$?" = "1" ]; then echo "$BINARY_NAME not found. Is $HELM_INSTALL_DIR on your "'$PATH?' exit 1