Skip to content

Commit

Permalink
Streamlined loop syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed May 19, 2024
1 parent 759880e commit 2279c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k9s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2279c54

Please sign in to comment.