From 44901943894cad8b210c086e88f42bff82b0211a Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 22 Jun 2026 17:26:29 +0100 Subject: replaces :: with `cut` for POSIX compatibility in upp* source files --- http/src/microlog.upphtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http/src/microlog.upphtml') diff --git a/http/src/microlog.upphtml b/http/src/microlog.upphtml index a1da471..aa3cfea 100644 --- a/http/src/microlog.upphtml +++ b/http/src/microlog.upphtml @@ -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" #!
  • -- cgit v1.2.3