Updating & documenting hooks

This commit is contained in:
2022-10-26 19:38:18 -05:00
parent dac8563a32
commit 87f907d948
4 changed files with 24 additions and 6 deletions

8
Hooks/scripts.d/local-hooks Executable file
View File

@@ -0,0 +1,8 @@
# This script ensures that repos can commit personal hooks in the ./precommit-hooks folder.
for script in `find precommit-hooks -type f`; do
if ! bash "$script"; then
echo "Local script $script failed checks."
exit 1
fi
done