aboutsummaryrefslogtreecommitdiff
path: root/doc/htmltidy.bash
blob: 9d9d4e1e24dade1c20fbf8dffcc64036e9305a08 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

if [[ "${1/.html}" == "${1}" ]] ; then
    echo "Not .html, no checking performed"
    exit 0
fi

tidy -utf8 -q < "${1}" 1>/dev/null