Skip to content

Fix HIDE_IF_NOCONTEXT value #202

@jmench

Description

@jmench

[[ "${KUBE_PS1_CONTEXT}" == "N/A" ]] && [[ ${KUBE_PS1_HIDE_IF_NOCONTEXT} == false ]] && return

I believe here it should be checking that the value is true and not false. That way, it reads as intended: IF KUBE_PS1_CONTEXT is "N/A" AND KUBE_PS1_HIDE_IF_NOCONTEXT is "true", then return and hide the prompt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions