summaryrefslogtreecommitdiff
path: root/lib/atomfeed.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-08-28 10:17:08 +0100
committerPaul Buetow <paul@buetow.org>2022-08-28 10:17:08 +0100
commit072e1eef2e56f28a4b9c0540e5bd31a8002592d1 (patch)
tree0eb8a65252a0a7c4512f2eeef2901d83ec68c054 /lib/atomfeed.source.sh
parent35213c97cebe88d413c33ec9b2f4e03a7dc7f3ce (diff)
then there are no notes and no feeds dont process them
Diffstat (limited to 'lib/atomfeed.source.sh')
-rw-r--r--lib/atomfeed.source.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/atomfeed.source.sh b/lib/atomfeed.source.sh
index 391842a..c5e492f 100644
--- a/lib/atomfeed.source.sh
+++ b/lib/atomfeed.source.sh
@@ -82,6 +82,10 @@ atomfeed::content () {
# Generate an atom.xml feed file.
atomfeed::generate () {
local -r gemfeed_dir="$CONTENT_BASE_DIR/gemtext/gemfeed"
+ if [ ! -d "$gemfeed_dir" ]; then
+ return
+ fi
+
local -r atom_file="$gemfeed_dir/atom.xml"
local -r now=$($DATE --iso-8601=seconds)
log INFO "Generating Atom feed to $atom_file"