diff options
author | June McEnroe <june@causal.agency> | 2021-02-22 17:51:38 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-02-22 17:51:38 -0500 |
commit | bd4d40bc5dbb74ba5808ab42e9c0adac0c07c9f8 (patch) | |
tree | c17f156a4c576e248c224ed983a5074f5774d8c0 /www | |
parent | Add asciinema to sup (diff) | |
download | src-bd4d40bc5dbb74ba5808ab42e9c0adac0c07c9f8.tar.gz src-bd4d40bc5dbb74ba5808ab42e9c0adac0c07c9f8.zip |
Iterate over text files to generate feed
So that only "published" text files are included.
Diffstat (limited to '')
-rw-r--r-- | www/text.causal.agency/feed.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/text.causal.agency/feed.sh b/www/text.causal.agency/feed.sh index fe028621..f45bd326 100644 --- a/www/text.causal.agency/feed.sh +++ b/www/text.causal.agency/feed.sh @@ -23,8 +23,8 @@ encode() { ' "$@" } -for entry in *.7; do - txt="${entry%.7}.txt" +for txt in *.txt; do + entry="${txt%.txt}.7" date=$(grep '^[.]Dd' "$entry" | cut -c 5-) title=$(grep '^[.]Nm' "$entry" | cut -c 5- | encode) summary=$(grep '^[.]Nd' "$entry" | cut -c 5- | encode) |