vmware-archive / ktx

manage kubernetes cluster configs
Apache License 2.0
135 stars 24 forks source link

ktx: Verify the existence of config file before sourcing #9

Closed tylerauerbeck closed 6 years ago

tylerauerbeck commented 6 years ago

Check for the existence of the config file before exporting the KUBECONFIG environment variable

Signed-off-by: Tyler Auerbeck auerbecktj@gmail.com

Fixes #2

tylerauerbeck commented 6 years ago

@chuckha That's a good point, some of this may be confusing after awhile. Added the comment you mentioned and made sure to quote the variables inside of the if statement.

chuckha commented 6 years ago

Thank you!