diff options
| author | Paul Buetow <paul@buetow.org> | 2022-11-23 20:45:21 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-11-23 20:45:21 +0200 |
| commit | 5bbae36a59881e34fe111c0ee9f44f3907158301 (patch) | |
| tree | 85d2b8da1f33c327f57def0ba31a178872050a3d /lib/notes.source.sh | |
| parent | 6682bd7c4c45283acdb161765dac58ec034899bd (diff) | |
| parent | 4c4f379ea616eeec320ec27776c739fadf70d2da (diff) | |
merge
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" |
