mirror of
https://github.com/vhaudiquet/mymachine.git
synced 2025-12-18 20:16:05 +00:00
Update prompt for no kubectx
This commit is contained in:
@@ -27,6 +27,7 @@ parse_kubernetes_context()
|
|||||||
ctx=$(kubectx -c 2>/dev/null)
|
ctx=$(kubectx -c 2>/dev/null)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ctx" = "default" ]; then
|
if [ "$ctx" = "default" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user