Fixed kcontext k8s path for cygwin

This commit is contained in:
斟酌 鵬兄 2023-10-09 04:11:58 +09:00
parent 585254f1af
commit 9221c199ae

View File

@ -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