]> git.mxchange.org Git - mailer.git/blobdiff - DOCS/lint.sh
First batch of fixed language ids (renamed, see ticket #219)
[mailer.git] / DOCS / lint.sh
index 00c4a2c545218402502edfebac78a36eb112910b..1e333eee6adac48f6618ceb1b796b4011216b251 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+if ! test -e "modules.php"; then
+  echo "$0: Please execute this script from root directory."
+  exit 1
+fi
+
 echo "$0: Analysing PHP scripts for syntax errors (lint) ..."
 LINT=`find -type f -name "*.php" -exec php -l -f {} 2>&1 \; | grep -v "No syntax errors detected in"`