From 0f293027145824bda8938a65d7a9de4d47e47207 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 13 Aug 2022 11:36:13 -0500 Subject: Default to processing files from the current directory --- shatom | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shatom b/shatom index 8e3abe5..05b6052 100755 --- a/shatom +++ b/shatom @@ -68,6 +68,11 @@ main() { FEED_UPDATED="${FEED_UPDATED:-$(date -u +'%F %TZ')}" SITE_URL="${SITE_URL:-https://example.com/}" + # Add PWD if no directories are given. + if [ $# -eq 0 ]; then + set -- . + fi + # Do the damn thing already feed_header for DIR; do -- cgit 1.4.1-21-gabe81