diff options
author | Steph Enders <steph@senders.io> | 2023-06-21 20:31:43 -0400 |
---|---|---|
committer | Steph Enders <steph@senders.io> | 2023-06-21 20:31:43 -0400 |
commit | db1d929f35ca976b27b4ba042b3c81bb42412906 (patch) | |
tree | bdfc31d694fc1a527b29c971698a44d1c25a5eb5 /tidy.sh | |
parent | a1d37cf969f93d4ee7a52aecbf139563c878355f (diff) |
Add tidy and tidy the content
Diffstat (limited to 'tidy.sh')
-rwxr-xr-x | tidy.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |