#!/bin/bash
# (C) Jonathan Voss 2020
# ISC/copyleft license
dothing() {
find . -name '*.php' -exec php -l {} \; | grep "Parse"
}
if [ ! -z $1 ]; then
pushd $1 >/dev/null
dothing
popd >/dev/null
else
dothing
fi
Comments