X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DOCS%2Fvalidator.sh;h=20aedf2a56f481a6cfea804373d0a952af12fcf4;hb=668d3df20156d5dbd4f34342eeadcbd5d420a8f5;hp=931964e3fa8e3b65580ce1f3a49e5f28c5faffad;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/DOCS/validator.sh b/DOCS/validator.sh index 931964e3fa..20aedf2a56 100755 --- a/DOCS/validator.sh +++ b/DOCS/validator.sh @@ -1,5 +1,9 @@ #!/bin/sh echo "$0: Validating all templates..." -find templates/de/html/ -type f -name *.tpl -exec php DOCS/tpl-validator.php {} \; | grep Warning | cut -d "/" -f 1-5 | grep -v "error parsing attribute name" > `dirname $0`/template-warnings.log +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 "$0: done."