diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-22 17:26:29 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-22 17:26:29 +0100 |
| commit | 44901943894cad8b210c086e88f42bff82b0211a (patch) | |
| tree | c63c55d71313971dadefb75d8b8df24390268d36 /http/src/blog.upphtml | |
| parent | 71052b8c265c500f8a39f5e0763b74cb5df071fc (diff) | |
replaces :: with `cut` for POSIX compatibility in upp* source files
Diffstat (limited to 'http/src/blog.upphtml')
| -rw-r--r-- | http/src/blog.upphtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/src/blog.upphtml b/http/src/blog.upphtml index 5c37aba..8c0e429 100644 --- a/http/src/blog.upphtml +++ b/http/src/blog.upphtml @@ -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" #! |
