diff options
| author | Paul Buetow <paul@buetow.org> | 2022-08-28 10:17:08 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-08-28 10:17:08 +0100 |
| commit | 072e1eef2e56f28a4b9c0540e5bd31a8002592d1 (patch) | |
| tree | 0eb8a65252a0a7c4512f2eeef2901d83ec68c054 /lib/notes.source.sh | |
| parent | 35213c97cebe88d413c33ec9b2f4e03a7dc7f3ce (diff) | |
then there are no notes and no feeds dont process them
Diffstat (limited to 'lib/notes.source.sh')
| -rw-r--r-- | lib/notes.source.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/notes.source.sh b/lib/notes.source.sh index b82631d..0f5251d 100644 --- a/lib/notes.source.sh +++ b/lib/notes.source.sh @@ -11,6 +11,11 @@ notes::_get_notes () { # Generate a index.gmi in the ./notes subdir. notes::generate () { local -r notes_dir="$CONTENT_BASE_DIR/gemtext/notes" + if [ ! -d "$notes_dir" ]; then + log INFO "Capsule without Notes section" + return + fi + log INFO "Generating Notes index for $notes_dir" cat <<NOTES > "$notes_dir/index.gmi.tmp" |
