commit 665680e994ca7fc8103218e04704338de9ad14f7 parent 5de23a87d235047cb89872c7c29ac735c1cf8dbb Author: Antoine Amarilli <a3nm@a3nm.net> Date: Sat, 27 Dec 2014 18:54:41 +0100 +checkhtml Diffstat:
checkhtml | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/checkhtml b/checkhtml @@ -0,0 +1,15 @@ +#!/bin/bash +tidy -utf8 -errors -xml -quiet "$1" +A=$? +if [ $A -ne 0 ] +then +exit $A +fi +cat -n "$1" | grep --color '< ' +A=$? +if [ $A -ne 0 ] +then +exit 0 +else +exit 1 +fi