mybin

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

checkhtml5 (315B)


      1 #!/bin/bash
      2 
      3 if ! sudo docker ps | grep '\sa3nm-tidy-html5-testing$' > /dev/null
      4 then
      5   sudo docker start a3nm-tidy-html5-testing >/dev/null || {
      6       echo "cannot start the tidy container" >&2; exit 3;
      7     }
      8 fi
      9 
     10 docker exec -i a3nm-tidy-html5-testing /usr/local/bin/tidy \
     11   --doctype html5 -utf8 -errors -quiet
     12