fix: git template
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")/pre-commit.d"
|
||||
|
||||
for hook in *; do
|
||||
bash $hook
|
||||
RESULT=$?
|
||||
if [ $RESULT != 0 ]; then
|
||||
echo "pre-commit.d/$hook returned non-zero: $RESULT, abort commit"
|
||||
exit $RESULT
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user