2023-01-25 22:31:55 -06:00
|
|
|
#!/bin/bash
|
2022-10-26 19:38:18 -05:00
|
|
|
# This script ensures that repos can commit personal hooks in the ./precommit-hooks folder.
|
|
|
|
|
2023-01-25 22:31:55 -06:00
|
|
|
if [ -d precommit-hooks ]; then
|
|
|
|
for script in `find precommit-hooks -type f`; do
|
|
|
|
if ! bash "$script"; then
|
|
|
|
echo "Local script $script failed checks."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|