adding sort to kube config find

This commit is contained in:
Pin Straw
2026-05-25 16:09:10 -04:00
parent 79a96e3486
commit 1ee5b0cc94

View File

@@ -23,6 +23,6 @@ EOF
cat <<'EOF'>~/.bashrc.d/kubectl_config cat <<'EOF'>~/.bashrc.d/kubectl_config
if [[ -d "$HOME/.kube/config.d" ]]; then if [[ -d "$HOME/.kube/config.d" ]]; then
export KUBECONFIG=$(find ~/.kube/config.d/ -type f | tr '\n' ':') export KUBECONFIG=$(find ~/.kube/config.d/ -type f | sort | tr '\n' ':')
fi fi
EOF EOF