File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,4 +46,5 @@ Temporary Items
4646
4747toCopy /
4848out /
49- Chart.lock
49+ Chart.lock
50+ * .tgz
Original file line number Diff line number Diff line change @@ -115,15 +115,12 @@ function checkAddons() {
115115}
116116
117117function installHelm() {
118- echo -e " ${INVERTED} Installing Helm...\n${NC} "
119- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_helm.sh
120- chmod 700 get_helm.sh
121-
122- ./get_helm.sh --version ${helmVersion}
123-
124- echo -e " \n${GREEN} Installed Helm [version $( helm version --client) ]${NC} \n"
125-
126- rm ./get_helm.sh
118+ if [ command -v helm > /dev/null 2>&1 ]; then
119+ echo -e " ${INVERTED} Helm has been installed.\n"
120+ else
121+ echo -e " ${INVERTED} Installing Helm...\n${NC} "
122+ curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
123+ fi
127124}
128125
129126function lintHelmChartsIfRequested() {
@@ -142,7 +139,7 @@ function lintHelmChartsIfRequested() {
142139 do
143140 for addon in ${directory} /* /; do
144141 for chart in ${addon} chart/* /; do
145- if [ -e ${chart} /Chart.lock ]; then
142+ if [ ! -e ${chart} /Chart.lock ]; then
146143 helm dependency update ${chart}
147144 fi
148145 for plan in ${addon} /plans/* /; do
You can’t perform that action at this time.
0 commit comments