From efd8caa2184caba625876d156d93279a82c2e6cb Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 26 Aug 2026 22:33:21 -0700 Subject: [PATCH] Fix: invoke git-guard.sh via bash explicitly so tracked file mode bit doesn't matter --- deploy/stack-deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/stack-deploy.sh b/deploy/stack-deploy.sh index 3879d79..0b79188 100755 --- a/deploy/stack-deploy.sh +++ b/deploy/stack-deploy.sh @@ -30,7 +30,8 @@ GLOBAL_ENV="$DIR/deploy/global.env" # ── Pre-flight: ensure local checkout is in sync with Gitea ───────────────── # Prevents deploying from a stale/diverged local tree (see incident 2026-08-26). -"$DIR/deploy/git-guard.sh" || { echo "ERROR: git-guard check failed. Deploy aborted."; exit 1; } +# Invoked via `bash` explicitly so the tracked file's exec bit doesn't matter. +bash "$DIR/deploy/git-guard.sh" || { echo "ERROR: git-guard check failed. Deploy aborted."; exit 1; } # ── Locate compose file(s) ──────────────────────────────────────────────────