From ff332178226f9155dc9c0d1074254d700967dc44 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Mon, 4 Aug 2025 13:49:48 +0200 Subject: [PATCH] fix(task): handle kubectl config current-context errors --- task | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task b/task index 60fca29..464aea7 100755 --- a/task +++ b/task @@ -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