X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Fvalidator.sh;h=9dea827d03f77191a032ade21b241a2e008f65ea;hb=0f3a135204757cc8750262871c8e62c42300acb4;hp=6b6e8270bf3bf44299027004dfdda1a3f8cd7f06;hpb=e2fbc6b0bc9ad6de051f90ad8327e0bd5f058ecd;p=mailer.git diff --git a/DOCS/validator.sh b/DOCS/validator.sh index 6b6e8270bf..9dea827d03 100755 --- a/DOCS/validator.sh +++ b/DOCS/validator.sh @@ -1,7 +1,14 @@ #!/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}" | grep "Warning" | cut -d "/" -f 1-5 | grep -v "error parsing attribute name" > `dirname $0`/template-warnings.log +echo "${DUMMY}" | \ + grep "Warning" | \ + cut -d "/" -f 1-5 | \ + grep -v "error parsing attribute name" > `dirname $0`/template-warnings.log echo "$0: done." -