Permalink
Browse files

making pre-commit hooks snazzier

  • Loading branch information...
danbeam committed May 16, 2012
1 parent 2bbc84a commit 7c17a364680ab3159d7b1701d01edf7b3c5cd843
Showing with 6 additions and 1 deletion.
  1. +6 −1 pre-commit.sh
View
@@ -1,7 +1,12 @@
#!/bin/sh
+echo "Running pre-commit tests...";
for f in `/bin/ls ./css/*_unittest.py`; do
- python $f || exit $?
+ output=$(python $f);
+ if [ $? -ne 0 ]; then
+ echo "$output" >&2;
+ exit 1
+ fi
done;
exit 0

0 comments on commit 7c17a36

Please sign in to comment.