foundation-security-advisories/pre-commit-hook.sh

9 строки
161 B
Bash
Executable File

#!/bin/sh
check_advisories --staged-only
if [ "$?" -ne "0" ]; then
echo "Aborting commit. Fix above errors or do 'git commit --no-verify'."
exit 1
fi