]> git.mxchange.org Git - city.git/commitdiff
Improved find-bad-php.sh with a lint check + updated 'core'.
authorRoland Haeder <roland@mxchange.org>
Tue, 12 May 2015 00:04:30 +0000 (02:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 12 May 2015 00:05:29 +0000 (02:05 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
core
find-bad-php.sh

diff --git a/core b/core
index 6ce35323d0e770dc35c47c12ab9d3a1f7879acf8..f1483fbeae4881d349f9b9558340d1d56b0aab78 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 6ce35323d0e770dc35c47c12ab9d3a1f7879acf8
+Subproject commit f1483fbeae4881d349f9b9558340d1d56b0aab78
index 1d530b3afdb199af2c8c3022ed18cbcf1f723ae5..2fdfecf45b9391673b127911bf8eae0335154842 100755 (executable)
@@ -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."