]> git.mxchange.org Git - mailer.git/blobdiff - DOCS/validator.sh
TODOs and ext-network:
[mailer.git] / DOCS / validator.sh
index 931964e3fa8e3b65580ce1f3a49e5f28c5faffad..6b6e8270bf3bf44299027004dfdda1a3f8cd7f06 100755 (executable)
@@ -1,5 +1,7 @@
 #!/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."
+