Updating & documenting hooks
This commit is contained in:
8
Hooks/scripts.d/local-hooks
Executable file
8
Hooks/scripts.d/local-hooks
Executable 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
|
Reference in New Issue
Block a user