From 2b21fe0c21eca8e12a327e7248c118c95fbe1967 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Thu, 25 May 2023 13:40:54 +0200 Subject: [PATCH] Update fetch_helm_deps.sh Signed-off-by: Kjeld Schouten --- .github/scripts/fetch_helm_deps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/fetch_helm_deps.sh b/.github/scripts/fetch_helm_deps.sh index 8f5fd139678..21cad5591ff 100755 --- a/.github/scripts/fetch_helm_deps.sh +++ b/.github/scripts/fetch_helm_deps.sh @@ -101,7 +101,7 @@ for idx in $(eval echo "{0..$length}"); do if [ ! $? ]; then echo "❌ wget encountered an error..." - if [[ $train_chart == "incubator" ]]; then + 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 @@ -112,7 +112,7 @@ for idx in $(eval echo "{0..$length}"); do if [ -f "$cache_path/$repo_dir/$name-$version.tgz" ]; then echo "✅ Dependency Downloaded!" - if [[ $train_chart != "incubator" ]]; then + if [[ "$train_chart" != "incubator" ]]; then echo "Validating dependency signature..." helm verify $cache_path/$repo_dir/$name-$version.tgz --keyring $gpg_dir/pubring.gpg || \ helm verify $cache_path/$repo_dir/$name-$version.tgz --keyring $gpg_dir/pubring.gpg || exit 1 @@ -122,7 +122,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" ]]; then + 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