Fix global CDF feed

This commit is contained in:
Lucidiot 2021-07-24 22:19:02 +02:00
parent b2cc687059
commit feb0e6a2f9
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<LOGO HREF=\"http://tilde.town/~lucidiot/itsb/img/itsb.gif\" STYLE=\"IMAGE\"/>" > "$DIR/feeds.cdf.new"
# Grab the paths to all generated CDF feeds from the XML in stdin
"$DIR/bin/xml2json" | jq --raw-output --arg DIR "$DIR" '.. | objects | select(.["@format"] == "cdf") | "\($DIR)/feeds/\(.output // .link)"' | xargs tail -q -n+2 > "$DIR/feeds.cdf.new"
"$DIR/bin/xml2json" | jq --raw-output --arg DIR "$DIR" '.. | objects | select(.["@format"] == "cdf") | "\($DIR)/feeds/\(.output // .link)"' | xargs tail -q -n+2 >> "$DIR/feeds.cdf.new"
echo '</CHANNEL>' >> "$DIR/feeds.cdf.new"