phpmyadmin/test/ci-phplint
Maurício Meneghini Fauth 0339dc0904
Return linter exit code in test/ci-phplint
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-06 11:47:05 -03:00

17 lines
310 B
Bash
Executable File

#!/bin/sh
FILES=$(find . -name '*.php' -not -path './vendor/*' -not -path './tmp/*' -not -path './node_modules/*')
result=0
for FILE in $FILES ; do
if [ -f "$FILE" ] ; then
php -l "$FILE"
ret=$?
if [ $ret != 0 ] ; then
result=$ret
fi
fi
done
exit $result