commit 3ed7f0abb61fb24c58c5fbcf2d840e7dd93b79af
parent 46d82422381827ddb0d3bfe0925b49c8f051f0b0
Author: pyratebeard <root@pyratebeard.net>
Date: Wed, 29 Dec 2021 16:54:22 +0000
remove rss files after import into rss.xml
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/pyratelog.sh b/pyratelog.sh
@@ -70,6 +70,8 @@ for md in ${find_md} ; do
rss_description=$(sed -n '/body/,/\/body/p' entry/${input}.html.rss)
echo -e "\t<item>\n\t\t${rss_title}\n\t\t${rss_pubdate}\n\t\t${rss_link}\n\t\t<description>${rss_description}</description>\n\t</item>\n$(cat rss.xml)" > rss.xml
+
+ rm -f entry/${input}.html.rss
done
if [[ $(head -n 1 rss.xml) != "<?xml version='1.0' encoding='UTF-8'?>" ]] ; then