mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Improve failure message for pre-commit. Closes #36
This commit is contained in:
parent
aae90cf70b
commit
47b7ca44ed
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue