Skip to content

Commit 013b6bc

Browse files
authored
fix(kubectx): use the env variable for kubectl (#438)
1 parent 0bcd0d5 commit 013b6bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubectx

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ main() {
227227
# we don't call current_context here for two reasons:
228228
# - it does not fail when current-context property is not set
229229
# - it does not return a trailing newline
230-
kubectl config current-context
230+
$KUBECTL config current-context
231231
elif [[ "${1}" == '-u' || "${1}" == '--unset' ]]; then
232232
unset_context
233233
elif [[ "${1}" == '-h' || "${1}" == '--help' ]]; then

0 commit comments

Comments
 (0)