summaryrefslogtreecommitdiff
path: root/lib/notes.source.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/notes.source.sh')
-rw-r--r--lib/notes.source.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/notes.source.sh b/lib/notes.source.sh
index 85bd2b5..08af3e5 100644
--- a/lib/notes.source.sh
+++ b/lib/notes.source.sh
@@ -42,9 +42,5 @@ That were all notes. Hope they were useful!
NOTES
# Only overwrite if content changed, preserving mtime for template skip logic
- if [[ -f "$notes_dir/index.gmi" ]] && diff -q "$notes_dir/index.gmi.tmp" "$notes_dir/index.gmi" >/dev/null 2>&1; then
- rm "$notes_dir/index.gmi.tmp"
- else
- mv "$notes_dir/index.gmi.tmp" "$notes_dir/index.gmi"
- fi
+ generate::safe_overwrite "$notes_dir/index.gmi.tmp" "$notes_dir/index.gmi"
}