blog

git clone https://git.ce9e.org/blog.git

commit
ecd6e0133b6a87c32fb275f3b46788e86e9e1c8d
parent
36615dd16298d6419156cf2a4a97ac815301ad3e
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-12-16 17:08
feed: fix shell escaping

Diffstat

M feed.sh 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/feed.sh b/feed.sh

@@ -22,7 +22,9 @@ ls _content/posts | tac | while read l; do
   22    22 	echo "		<link href=\"$url\" />"
   23    23 	echo "		<id>$url</id>"
   24    24 	echo "		<updated>$(grep '^date:' "$yml" | head -n 1 | sed 's/date: //' | escape)T00:00:00Z</updated>"
   25    -1 	echo "		<content type=\"text/html\">$(cat "$html" | escape)</content>"
   -1    25 	echo '		<content type="text/html">'
   -1    26 	cat "$html" | escape
   -1    27 	echo '		</content>'
   26    28 	echo '	</entry>'
   27    29 done
   28    30