fix(e2e): remove 'local' keyword outside function context

The 'local' bash keyword can only be used inside a function. Using it
at top-level of a run: block causes 'local: can only be used in a
function' error and exits the script with code 1.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-05 20:42:21 +00:00
committed by Hugh Hackman [agent]
parent b371b626ee
commit dc1f354449
+1 -1
View File
@@ -68,7 +68,7 @@ jobs:
done
echo ""
echo "=== In-cluster service account check ==="
local in_cluster=false
in_cluster=false
if [ -f /var/run/secrets/kubernetes.io/serviceaccount/token ]; then
echo "Service account token present — in-cluster mode available"
echo "KUBERNETES_SERVICE_HOST=${KUBERNETES_SERVICE_HOST:-}"