diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-22 17:51:14 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-22 17:51:14 +0100 |
| commit | 6ec142e8f447b5e7f03ed520744cfd060178f63b (patch) | |
| tree | aee343d4be9359e2e680b9209bca7f6ef37c9677 /http/src | |
| parent | 49cf91b78963cc4059eb4a273ac3024ef93abf7e (diff) | |
replace another :: with cut for POSIX compatibility
Diffstat (limited to 'http/src')
| -rw-r--r-- | http/src/microlog/rss.uppxml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/src/microlog/rss.uppxml b/http/src/microlog/rss.uppxml index 503ca1c..20a6ced 100644 --- a/http/src/microlog/rss.uppxml +++ b/http/src/microlog/rss.uppxml @@ -16,7 +16,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}" +POST_ID="$(echo ${post} | cut -c1-$(( ${#post} - 17 )) )" . "${SRC}/microlog/${post}.args" DATE_PUBLISHED_RFC_822="$(TZ=UT date --date="$( echo "${POST_ID}" | cut -c1-10)" +"%a, %d %b %Y %H:%M:%S UT")" #! |
