mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

checkhtml (165B)


      1 #!/bin/bash
      2 tidy -utf8 -errors -xml -quiet "$1"
      3 A=$?
      4 if [ $A -ne 0 ]
      5 then
      6 exit $A
      7 fi
      8 cat -n "$1" | grep --color '< '
      9 A=$?
     10 if [ $A -ne 0 ]
     11 then
     12 exit 0
     13 else
     14 exit 1
     15 fi