mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-06-28 16:26:48 +00:00
fix(kubectx): use the env variable for kubectl (#438)
This commit is contained in:
parent
0bcd0d5dd5
commit
013b6bc252
2
kubectx
2
kubectx
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user