Fixed a bug in the pre-commit hook

This commit is contained in:
Armin Ronacher 2015-07-12 20:23:08 +02:00
parent f4b2c251e2
commit 01b724edff
1 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
failed=0
for filename in hooks/pre-commit.*; do
if [ -f "hooks/$filename" ]; then
if $("./hooks/$filename") != "0"; then
if [ -f "$filename" ]; then
if ! $filename; then
failed=1
fi
fi
done
exit failed
exit $failed