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