summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtidy.sh7
1 files changed, 6 insertions, 1 deletions
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