diff options
-rwxr-xr-x | tidy.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |