From 909934363b92d98edd9317570ecffadeabbfe76c Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Mon, 6 Mar 2023 13:50:21 +0000 Subject: [PATCH] updated kustomize_install_helm_charts.sh --- kustomize_install_helm_charts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kustomize_install_helm_charts.sh b/kustomize_install_helm_charts.sh index 7c98bc76..7ea1558f 100755 --- a/kustomize_install_helm_charts.sh +++ b/kustomize_install_helm_charts.sh @@ -51,7 +51,7 @@ helm_repos="$(helm repo list -o yaml | yq -r '.[].url' || :)" "$srcdir/kustomize_parse_helm_charts.sh" "$@" | while read -r repo_url name version values_file; do - if ! grep -Fxq "$repo_url" <<< "$helm_repos"; then + if ! grep -Eq "$$name[[:space:]]+$repo_url[[:space:]]*$" <<< "$helm_repos"; then timestamp "Adding Helm repo '$repo_url' as name '$name'" # might fail here if you've already installed a repo with this name, in which case, fix your repos, we don't want to remove/modify your existing repos helm repo add "$name" "$repo_url"