mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
git mv pre_commit/resources/pre-commit.sh pre_commit/resources/pre-commit-hook
This commit is contained in:
parent
39470c98ca
commit
a744a6484e
4 changed files with 3 additions and 3 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue