When ktx encounters an error (for example, a user specifying a file that does not exist in the user's ~/.kube directory), it closes the current shell (instead of just reporting the error and setting an exit code).
How to reproduce:
Launch a clean Bash shell with env -i bash --noprofile --norc.
Source ktx into this clean Bash shell.
Run ktx. It will report an error that the /.kube directory doesn't exist (it can't find it because the $HOME variable isn't defined in the environment). The clean Bash shell will terminate and return you to your original shell.
When
ktx
encounters an error (for example, a user specifying a file that does not exist in the user's~/.kube
directory), it closes the current shell (instead of just reporting the error and setting an exit code).How to reproduce:
env -i bash --noprofile --norc
.ktx
into this clean Bash shell.ktx
. It will report an error that the/.kube
directory doesn't exist (it can't find it because the$HOME
variable isn't defined in the environment). The clean Bash shell will terminate and return you to your original shell.