#!/bin/bash
set -e

if [ ! -d ".git" ]; then
    echo "❌ Not a git repository"
    exit 1
fi

cp hooks/pre-push .git/hooks/pre-push
chmod +x .git/hooks/pre-push
echo "✨ Hooks installed."
