#!/usr/bin/env bash if [ $# == 0 ]; then find www/ -name '*.html' -type f -print -exec tidy -mq -config tidy.conf '{}' \; if [ $? -lt 2 ]; then exit 0 fi else tidy -mq -config tidy.conf $@ if [ $? -lt 2 ]; then exit 0 fi fi