Fixed kcontext k8s path for cygwin
This commit is contained in:
parent
585254f1af
commit
9221c199ae
@ -66,6 +66,13 @@ function kcontext-k8s {
|
||||
chmod 600 "$_CONF"
|
||||
|
||||
echo $KUBECONFIG | grep "$_CONF" -q
|
||||
|
||||
case $OSTYPE in
|
||||
cygwin)
|
||||
_CONF=$( cygpath -w "$_CONF" )
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
export KUBECONFIG="$_CONF"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user