~jshholland/inv.alid.pw

7cf6d007a51b530703f0dcef9778db979a7a871d — Josh Holland 7 months ago be987a8
Further work around busybox/GNU date incompatibilities
1 files changed, 3 insertions(+), 3 deletions(-)

M mkfeed
M mkfeed => mkfeed +3 -3
@@ 6,7 6,7 @@ shopt -s lastpipe

DEST=$1
TYPE=$(basename "$DEST" .xml)
NOW=$(date -Iseconds)
NOW=$(date +%s)

yq --output-format json --indent 0 '.posts[]' allposts.meta.yaml | readarray POSTS



@@ 31,7 31,7 @@ make_atom () {
    <name>Josh Holland</name>
    <email>josh@inv.alid.pw</email>
  </author>
  <updated>$NOW</updated>
  <updated>$(date -d "@$NOW" -Iseconds)</updated>
EOF
    for post in "${POSTS[@]}"; do
        setup_vars "$post"


@@ 59,7 59,7 @@ make_rss () {
    <link>https://inv.alid.pw/</link>
    <description></description>
    <atom:link href="https://inv.alid.pw/rss.xml" rel="self" type="application/rss+xml"/>
    <lastBuildDate>$(date -d "$NOW" -R)</lastBuildDate>
    <lastBuildDate>$(date -d "@$NOW" -R)</lastBuildDate>
EOF
    for post in "${POSTS[@]}"; do
        setup_vars "$post"