Skip to content

Commit 5fc6a44

Browse files
authored
Merge pull request #471 from Trickybrain/helm
ensure helm install directory exists and use correct directory
2 parents 253b61c + 3e0617b commit 5fc6a44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hack/e2e/helm.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ set -uo pipefail
44

55
function helm_install() {
66
INSTALL_PATH=${1}
7+
78
if [[ ! -e ${INSTALL_PATH}/helm ]]; then
9+
mkdir -p ${INSTALL_PATH}
10+
pushd ${INSTALL_PATH} > /dev/null || return 1
11+
812
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
913
chmod 700 get_helm.sh
1014
export USE_SUDO=false
1115
export HELM_INSTALL_DIR=${INSTALL_PATH}
1216
./get_helm.sh
1317
rm get_helm.sh
18+
19+
popd > /dev/null
1420
fi
1521
}

0 commit comments

Comments
 (0)