Adding egrep hook; better iteration for whitespace; improving local tests

This commit is contained in:
2023-01-25 22:31:55 -06:00
parent 133f231726
commit 16c864e161
7 changed files with 24 additions and 14 deletions

View File

@@ -1,8 +1,11 @@
#!/bin/bash
# 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
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