diff options
| author | Paul Buetow <paul@buetow.org> | 2021-05-12 10:07:06 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-21 05:11:04 +0100 |
| commit | 5cab54c35ef2b256b31754fb3df0a376becee897 (patch) | |
| tree | 61885ac66f781fa00b9087a0e7150492e97e9ee5 /modules/gemfeed.source.sh | |
| parent | bdf56f978f490f97e89afb6650e3a1913abd8e28 (diff) | |
better logging and better testing
Diffstat (limited to 'modules/gemfeed.source.sh')
| -rw-r--r-- | modules/gemfeed.source.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gemfeed.source.sh b/modules/gemfeed.source.sh index 66ed48f..c68c507 100644 --- a/modules/gemfeed.source.sh +++ b/modules/gemfeed.source.sh @@ -12,6 +12,8 @@ gemfeed::updatemainindex () { local -r index_gmi="$CONTENT_DIR/gemtext/index.gmi" local -r gemfeed_dir="$CONTENT_DIR/gemtext/gemfeed" + log VERBOSE "Updating $index_gmi with posts from $gemfeed_dir" + # Remove old gemfeeds from main index $SED '/^=> .\/gemfeed\/[0-9].* - .*/d;' "$index_gmi" > "$index_gmi.tmp" # Add current gemfeeds to main index @@ -24,6 +26,7 @@ gemfeed::updatemainindex () { # This generates a index.gmi in the ./gemfeed subdir. gemfeed::generate () { local -r gemfeed_dir="$CONTENT_DIR/gemtext/gemfeed" + log INFO "Generating Gemfeed index for $gemfeed_dir" cat <<GEMFEED > "$gemfeed_dir/index.gmi.tmp" # $DOMAIN's Gemfeed |
