fix(task): handle kubectl config current-context errors

This commit is contained in:
Janik von Rotz committed 2025-08-04 13:49:48 +02:00
1 parent 369f70ab59
commit ff33217822
1 file changed
+1 -1
+1 -1
View File
@@ -88,7 +88,7 @@ CONTAINER_CONFIG="$HOME/.docker/$CONTAINER_REGISTRY"
# Dynamic vars
PASS_ENTRY=$(echo "env/${PWD##*/}" | tr '[:upper:]' '[:lower:]')
CURRENT_CONTEXT=$(kubectl config current-context)
CURRENT_CONTEXT=$(kubectl config current-context || "")
# Import commands