#!/usr/bin/env bash # check to see if helm is installed if ! command -v helm &> /dev/null; then echo "Helm is not installed. Installing it now ..." # curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash if [ $? -ne 0 ]; then echo "Failed to install Helm." exit 1 fi fi helm version