diff --git a/script.sh b/script.sh index bef67e3..a1aaa44 100755 --- a/script.sh +++ b/script.sh @@ -12,7 +12,7 @@ repo="$REGISTRY"/"$REPO" helm repo add "$REPO" "$repo" # Dependencies -eval "$(yq -o=j -I=0 '.dependencies[]' Chart.yaml | yq '"helm repo add " + .name + " " + .repository' -)" +eval "$(yq '.dependencies' Chart.yaml | yq 'unique_by(.repository)' - | yq '.[] | "helm repo add " + .name + " " + .repository' -)" helm dependency build # Lint