#!/usr/bin/env bash
# Run once after cloning: bash scripts/install-hooks.sh
# Copies the project's git hooks into .git/hooks/
set -e
REPO_ROOT="$(git rev-parse --show-toplevel)"
HOOKS_SRC="$REPO_ROOT/scripts/hooks"
HOOKS_DST="$REPO_ROOT/.git/hooks"
cp "$HOOKS_SRC/pre-commit" "$HOOKS_DST/pre-commit"
chmod +x "$HOOKS_DST/pre-commit"
echo "✓ Installed pre-commit hook"
