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
+1 -1
View File
@@ -51,7 +51,7 @@ for year in $YEARS; do
#!
for post in $POSTS; do if [ "$(echo "${post}" | cut -c1-4)" = "$year" ]; then
title="$(grep "^export TITLE=" "${SRC}/blog/${post}" | cut -c15-)"
title="${title::${#title}-16}"
title="$(echo ${title} | cut -c1-$(( ${#title} - 16 )) )"
date_published="$(echo "${post}" | cut -c1-10)"
href="${SITE_URL}/blog/$(echo "$post" | cut -c1-10).html"
#!