Improve failure message for pre-commit. Closes #36

This commit is contained in:
Anthony Sottile
2014-03-22 17:21:17 -07:00
parent aae90cf70b
commit 47b7ca44ed

View File

@@ -1,3 +1,9 @@
#!/usr/bin/env bash
pre-commit
which pre-commit > /dev/null
if [ $? -ne 0 ]; then
echo '`pre-commit` not found. Did you forget to activate your virtualenv?'
exit 1
fi
pre-commit