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
@@ -18,7 +18,7 @@ NOW_RFC_822="$(TZ=UT date +"%a, %d %b %Y %H:%M:%S UT")"
for post in $POSTS; do
POST_ID="${post::${#post}-17}"
source "${SRC}/microlog/${post}.args"
DATE_PUBLISHED_RFC_822="$(TZ=UT date --date="${POST_ID::10}" +"%a, %d %b %Y %H:%M:%S UT")"
DATE_PUBLISHED_RFC_822="$(TZ=UT date --date="$( echo "${POST_ID}" | cut -c1-10)" +"%a, %d %b %Y %H:%M:%S UT")"
#!
<item>