X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Flint.sh;h=1e333eee6adac48f6618ceb1b796b4011216b251;hb=c6a411b7d235e1d3a36321fcb7ac806a0e6509f7;hp=00c4a2c545218402502edfebac78a36eb112910b;hpb=35b12d8c2875adeaf5e797e9496a618e39cfb0e5;p=mailer.git diff --git a/DOCS/lint.sh b/DOCS/lint.sh index 00c4a2c545..1e333eee6a 100755 --- a/DOCS/lint.sh +++ b/DOCS/lint.sh @@ -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"`