X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Fvalidator.sh;h=9dea827d03f77191a032ade21b241a2e008f65ea;hb=a454def0bfba8288ffc839d034c710f034cf4728;hp=20aedf2a56f481a6cfea804373d0a952af12fcf4;hpb=ebb5d93c1d0234fff9cf3c46690904174b3fd15d;p=mailer.git diff --git a/DOCS/validator.sh b/DOCS/validator.sh index 20aedf2a56..9dea827d03 100755 --- a/DOCS/validator.sh +++ b/DOCS/validator.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: Validating all templates..." DUMMY=`find templates/de/html/ -type f -name *.tpl -exec php DOCS/tpl-validator.php {} \; 2>&1` echo "${DUMMY}" | \