mirror of https://github.com/Mroik/ttbp-rssgen.git
Small change, 1 less write to file
parent
2ac5e14809
commit
46b82311f4
|
@ -8,15 +8,15 @@ else
|
||||||
location="$location/rss.xml"
|
location="$location/rss.xml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > $location
|
|
||||||
{
|
{
|
||||||
|
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
|
||||||
echo "<rss version=\"2.0\">"
|
echo "<rss version=\"2.0\">"
|
||||||
echo "<channel>"
|
echo "<channel>"
|
||||||
echo "<title>~$user on TTBP</title>"
|
echo "<title>~$user on TTBP</title>"
|
||||||
echo "<link>http://tilde.town/~$user/blog/</link>"
|
echo "<link>http://tilde.town/~$user/blog/</link>"
|
||||||
echo "<updated>$(date)</updated>"
|
echo "<updated>$(date)</updated>"
|
||||||
echo "<description>$user's blog on tilde.town</description>"
|
echo "<description>$user's blog on tilde.town</description>"
|
||||||
} >> $location
|
} > $location
|
||||||
|
|
||||||
for x in $(ls /home/$user/.ttbp/entries)
|
for x in $(ls /home/$user/.ttbp/entries)
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue