Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae90cf commit 47b7ca4Copy full SHA for 47b7ca4
1 file changed
pre_commit/resources/pre-commit.sh
@@ -1,3 +1,9 @@
1
#!/usr/bin/env bash
2
3
-pre-commit
+which pre-commit > /dev/null
4
+if [ $? -ne 0 ]; then
5
+ echo '`pre-commit` not found. Did you forget to activate your virtualenv?'
6
+ exit 1
7
+fi
8
+
9
+pre-commit
0 commit comments