#!/bin/sh
# Prevent .env files from being committed
if git diff --cached --name-only | grep -E '\.env$|\.env\.'; then
  echo "❌ ERROR: Attempting to commit .env file(s). This is blocked for security."
  echo "   If you need to update .env.example, that's allowed."
  exit 1
fi
