replaces :: with cut for POSIX compatibility in upp* source files

This commit is contained in:
2026-06-22 17:26:29 +01:00
parent 71052b8c26
commit 4490194389
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -53,9 +53,9 @@ for year in $YEARS; do
#!
for post in $POSTS; do if [ "$(echo "${post}" | cut -c1-4)" = "$year" ]; then
title="$(grep "^export TITLE=" "${SRC}/microlog/${post}" | cut -c15-)"
title="${title::${#title}-16}"
title="$(echo "${title}" | cut -c1-$(( ${#title} - 16)) )"
date_published="$(echo "${post}" | cut -c1-10)"
href="${SITE_URL}/microlog/${post::${#post}-17}.html"
href="${SITE_URL}/microlog/$(echo ${post} | cut -c1-$(( ${#post} - 17 )) ).html"
#!
<li class='h-entry'>