Skip to content

Commit

Permalink
fix(kubectx): use the env variable for kubectl (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin0u0 authored Jan 22, 2025
1 parent 0bcd0d5 commit 013b6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubectx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ main() {
# we don't call current_context here for two reasons:
# - it does not fail when current-context property is not set
# - it does not return a trailing newline
kubectl config current-context
$KUBECTL config current-context
elif [[ "${1}" == '-u' || "${1}" == '--unset' ]]; then
unset_context
elif [[ "${1}" == '-h' || "${1}" == '--help' ]]; then
Expand Down

0 comments on commit 013b6bc

Please sign in to comment.