#!/usr/bin/env bash # setup-hooks.sh — wire the local .githooks/ directory into core.hooksPath. # Run once after cloning the repo. Idempotent; safe to re-run on every pull. set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" cd "$ROOT" git config core.hooksPath .githooks chmod +x .githooks/pre-push chmod +x scripts/*.sh echo "setup-hooks: core.hooksPath -> .githooks (pre-push wired)"