Files
Nexus/scripts/gate_ai_review.sh
2026-07-08 22:31:31 +08:00

17 lines
407 B
Bash

#!/usr/bin/env bash
# Run Nexus Gate 8 AI review (see scripts/gate_ai_review.py).
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "${ROOT}"
PYTHON=""
for p in "${ROOT}/.venv/bin/python3" "${ROOT}/venv/bin/python3"; do
if [[ -x "${p}" ]]; then
PYTHON="${p}"
break
fi
done
if [[ -z "${PYTHON}" ]]; then
PYTHON="python3"
fi
exec "${PYTHON}" "${ROOT}/scripts/gate_ai_review.py" "$@"