summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-15 18:16:26 +0100
committerJoe Carstairs <me@joeac.net>2026-06-15 18:16:26 +0100
commitbe6466c0ff497d83b2cb8eae5baaf4f060105163 (patch)
treea237109dca0b50b876589d74a45a208a28f72983
parentc2aef5c998730441a89e82452442190f54f94bc8 (diff)
fix blog script bug: multiple posts on the same day overwrite each other
-rwxr-xr-xhttp/bin/blog2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/bin/blog b/http/bin/blog
index 36753bd..b5692eb 100755
--- a/http/bin/blog
+++ b/http/bin/blog
@@ -95,7 +95,7 @@ mkdir -p "${SRC}/${log_name}"
for entry in $(find -L "${BLOGS}/${log_name}" -type f -name "${file_pattern}")
do
basename="$(basename "$entry")"
- name="${basename%%\.*}"
+ name="${basename%\.*}"
dest="${SRC}/${log_name}/${name}${layout_ext}.upphtml"
if [ $use_filenames_for_titles -eq 1 ]
then