fix: Ensure `accept_all.sh` runs from the project root and flags missing gate scripts as failures.

pull/12760/head
vijay sharma 4 months ago
parent 934a65d5b4
commit cbaef56bfa

@ -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

Loading…
Cancel
Save