Files
Uniglot/Hooks/scripts.d/local-hooks

13 lines
352 B
Bash
Executable File

#!/bin/bash
# This script ensures that repos can commit personal hooks in the ./precommit-hooks folder.
if [ -d precommit-hooks ]; then
for script in `find precommit-hooks -type f`; do
echo Running "$script"
if ! bash "$script"; then
echo "Local script $script failed checks."
exit 1
fi
done
fi