From 2279c544658f4e6d02dab724835bdf262c77f930 Mon Sep 17 00:00:00 2001 From: Martin Montes Date: Sun, 19 May 2024 12:34:27 +0200 Subject: [PATCH] Streamlined loop syntax --- k9s.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k9s.sh b/k9s.sh index 6d9b12b..76d7d98 100755 --- a/k9s.sh +++ b/k9s.sh @@ -81,9 +81,9 @@ K9S_PLUGINS=( # custom "k8s-tooling/.k9s/plugins/flux.yaml" ) -for i in "${!K9S_PLUGINS[@]}"; do +for PLUGIN in "${K9S_PLUGINS[@]}"; do yq eval-all '. as $item ireduce ({}; . *+ $item)' \ - --inplace "$K9S_CONFIG/plugins.yaml" "${K9S_PLUGINS[$i]}" + --inplace "$K9S_CONFIG/plugins.yaml" "$PLUGIN" done rm -rf k9s