#!/usr/bin/env bash # Pre-commit hook: run checks on staged changes # # Install with: git config core.hooksPath hooks HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)" run_check() { bash "$HOOKS_DIR/checks/$1" || exit 1 } run_check pkgcheck-staged.sh