We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 878d945 commit ae9f7c9Copy full SHA for ae9f7c9
pre-commit.sh
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
3
-FILES_TO_CHECK=$(git status | grep -e '\#.*\(modified\|new file\)'| grep ".php" | awk '{print $NF}')
+FILES_TO_CHECK=$(git status | grep -e '\#.*\(modified\|new file\)'| egrep "(.php|.module|.inc|.install)" | awk '{print $NF}')
4
ERRORS=""
5
6
echo -e "\n=============="
0 commit comments