#!/bin/sh
forge verify --staged
ec=$?
if [ "$ec" -ge 2 ]; then
  echo "forge verify failed — commit blocked (exit_code=$ec)"
  exit 1
fi
exit 0
