From 4448866d696698ee9015cea99e4183c88dd8cde5 Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Sun, 16 Feb 2020 23:11:01 -0500 Subject: Update tidy.sh to allow for specific files Rather than have it run across the entire project, enable it to run for given file arguments. By default it will still run against all html files in the project --- tidy.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tidy.sh b/tidy.sh index 3def05e..7ac0409 100755 --- a/tidy.sh +++ b/tidy.sh @@ -1,2 +1,7 @@ #!/usr/bin/env bash -find . -name '*.html' -type f -print -exec tidy -mq -config tidy.conf '{}' \; + +if [ $# == 0 ]; then + find . -name '*.html' -type f -print -exec tidy -mq -config tidy.conf '{}' \; +else + tidy -mq -config tidy.conf $@ +fi -- cgit v1.2.3-54-g00ecf