Skip to content

Instantly share code, notes, and snippets.

@MarkRose
Created March 23, 2012 18:36
Show Gist options
  • Save MarkRose/2173610 to your computer and use it in GitHub Desktop.
Save MarkRose/2173610 to your computer and use it in GitHub Desktop.
Recursively find PHP files with syntax errors, stopping at first one
#!/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