Update fetch_helm_deps.sh

Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten
2023-05-24 20:50:31 +02:00
committed by GitHub
parent 00f7fc0fa3
commit 040e87f8ec

View File

@@ -101,7 +101,7 @@ for idx in $(eval echo "{0..$length}"); do
if [ ! $? ]; then
echo "❌ wget encountered an error..."
if [[ $train_chart == "incubator" ]]
if [[ $train_chart == "incubator" ]]; then
helm dependency build "$charts_path/$train_chart/Chart.yaml" || \
helm dependency update "$charts_path/$train_chart/Chart.yaml"|| exit 1
else
@@ -118,7 +118,7 @@ for idx in $(eval echo "{0..$length}"); do
else
echo "❌ Failed to download dependency"
# Try helm dependency build/update or otherwise fail fast if a dep fails to download...
if [[ $train_chart == "incubator" ]]
if [[ $train_chart == "incubator" ]]; then
helm dependency build "$charts_path/$train_chart/Chart.yaml" || \
helm dependency update "$charts_path/$train_chart/Chart.yaml"|| exit 1
else