scripts: bootstrap codex tooling for fix/check

This commit is contained in:
beatz174-bit
2026-04-29 13:04:53 +10:00
parent 6ccc7a2e8a
commit 8e39f9479f
6 changed files with 52 additions and 9 deletions
+8
View File
@@ -1,6 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ -x codex/setup.sh ]]; then
./codex/setup.sh >/dev/null
fi
if [[ -d .codex/bin ]]; then
export PATH="$(pwd)/.codex/bin:$PATH"
fi
echo "[check] verifying gofmt"
files="$(git ls-files '*.go')"
if [[ -n "${files}" ]]; then