From cbaef56bfac31cd0293bbce3df8e5499f7ad66ce Mon Sep 17 00:00:00 2001 From: vijay sharma Date: Sun, 25 Jan 2026 04:25:30 +0100 Subject: [PATCH] fix: Ensure `accept_all.sh` runs from the project root and flags missing gate scripts as failures. --- scripts/accept_all.sh | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 scripts/accept_all.sh diff --git a/scripts/accept_all.sh b/scripts/accept_all.sh old mode 100644 new mode 100755 index 0460240cb..6f7201e67 --- a/scripts/accept_all.sh +++ b/scripts/accept_all.sh @@ -3,6 +3,9 @@ # Runs all phase gates in order with run isolation and bundling set -euo pipefail +# Ensure we are running from the project root +cd "$(dirname "$0")/.." + RUN_ID=$(date +%Y%m%d_%H%M%S) export RUN_ID @@ -32,6 +35,7 @@ for gate in "${GATES[@]}"; do GATE_SCRIPT="scripts/gates/${gate}.sh" if [ ! -f "$GATE_SCRIPT" ]; then echo "ERROR: Gate script missing: $GATE_SCRIPT" + FAILED=1 continue fi