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

9 строки
161 B
Bash
Исходник Обычный вид История

#!/bin/sh
2022-06-28 18:07:44 +03:00
check_advisories --staged-only
if [ "$?" -ne "0" ]; then
echo "Aborting commit. Fix above errors or do 'git commit --no-verify'."
exit 1
fi