From db1d929f35ca976b27b4ba042b3c81bb42412906 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Wed, 21 Jun 2023 20:31:43 -0400 Subject: Add tidy and tidy the content --- tidy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tidy.sh (limited to 'tidy.sh') diff --git a/tidy.sh b/tidy.sh new file mode 100755 index 0000000..6efdb2d --- /dev/null +++ b/tidy.sh @@ -0,0 +1,13 @@ +#!/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 -- cgit v1.2.3-54-g00ecf