diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-15 18:16:26 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-15 18:16:26 +0100 |
| commit | be6466c0ff497d83b2cb8eae5baaf4f060105163 (patch) | |
| tree | a237109dca0b50b876589d74a45a208a28f72983 | |
| parent | c2aef5c998730441a89e82452442190f54f94bc8 (diff) | |
fix blog script bug: multiple posts on the same day overwrite each other
| -rwxr-xr-x | http/bin/blog | 2 |
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 |
