Created
March 23, 2012 18:36
-
-
Save MarkRose/2173610 to your computer and use it in GitHub Desktop.
Recursively find PHP files with syntax errors, stopping at first one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(find -name "*php" | sort) ; do php -l $i ; if [ $? -gt 0 ] ; then break ; fi ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment