projects
/
shipsimu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improved 'find-bad-php.sh' with a lint check + updated 'core'.
[shipsimu.git]
/
find-bad-php.sh
diff --git
a/find-bad-php.sh
b/find-bad-php.sh
index 1d530b3afdb199af2c8c3022ed18cbcf1f723ae5..2fdfecf45b9391673b127911bf8eae0335154842 100755
(executable)
--- a/
find-bad-php.sh
+++ b/
find-bad-php.sh
@@
-18,6
+18,13
@@
do
then
echo "$0: Script '${SCRIPT}' has non-typical footer."
fi
+
+ LINT=`php -l "${SCRIPT}" 2>&1 | grep -v "No syntax errors detected in"`
+
+ if [ -n "${LINT}" ]
+ then
+ echo "$0: ${LINT}"
+ fi
done
echo "$0: All done."