17 lines
407 B
Bash
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" "$@"
|