summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2015-07-12 20:23:08 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2015-07-12 20:23:08 +0200
commit01b724edffe2f65099912d80278e89516b2cb8e1 (patch)
treee81c026ad512f7ffb956effc59a16a42744cd5aa /hooks
parentf4b2c251e2a1a0e0494972186e7dbc9f02b3c84d (diff)
downloadraven-01b724edffe2f65099912d80278e89516b2cb8e1.tar.gz
Fixed a bug in the pre-commit hook
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-commit6
1 files changed, 3 insertions, 3 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit
index 245c4b7..661c78e 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -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