diff --git a/kubectx b/kubectx index d7bf945..65f38b5 100755 --- a/kubectx +++ b/kubectx @@ -113,11 +113,11 @@ switch_context() { choose_context_interactive() { local choice - local FZF='fzf' - [[ -n "${TMUX-}" ]] && FZF="fzf-tmux" + local fzf='fzf' + [[ -n "${TMUX-}" ]] && fzf="fzf-tmux" choice="$(_KUBECTX_FORCE_COLOR=1 \ FZF_DEFAULT_COMMAND="${SELF_CMD}" \ - ${FZF} --ansi --no-preview || true)" + ${fzf} --ansi --no-preview || true)" if [[ -z "${choice}" ]]; then echo 2>&1 "error: you did not choose any of the options" exit 1 diff --git a/kubens b/kubens index 199d119..3cd6e92 100755 --- a/kubens +++ b/kubens @@ -114,11 +114,11 @@ choose_namespace_interactive() { fi local choice - local FZF='fzf' - [[ -n "${TMUX-}" ]] && FZF="fzf-tmux" + local fzf='fzf' + [[ -n "${TMUX-}" ]] && fzf="fzf-tmux" choice="$(_KUBECTX_FORCE_COLOR=1 \ FZF_DEFAULT_COMMAND="${SELF_CMD}" \ - ${FZF} --ansi --no-preview || true)" + ${fzf} --ansi --no-preview || true)" if [[ -z "${choice}" ]]; then echo 2>&1 "error: you did not choose any of the options" exit 1