mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
git mv pre_commit/resources/pre-commit.sh pre_commit/resources/pre-commit-hook
This commit is contained in:
9
pre_commit/resources/pre-commit-hook
Executable file
9
pre_commit/resources/pre-commit-hook
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user