blob: 40498305de17b9d901bd725f41d0d34b58ff3e53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
#Author Addshore
find ./ -type f -name '*.php' -exec php -l {} \; | grep "Errors parsing ";
#Flip the exit code
if [ $? -ne 0 ]
then
exit 0
else
exit 1
fi
|