small PHP check before upload or test

In a world where Bash shell is under attack I attach a short shell script that make me waste less time in upload/commit/test loop: #! /bin/sh LIST=`find . -name ‘*.php’` for x in $LIST; do OUTPUT=`php -l $x` A=$? if [ $A -ne 0 ]; then echo “ERROR ON ” $x “with ” $OUTPUT; fi […]

Read More…