Small change, 1 less write to file

master
mroik 2020-12-17 08:57:15 +01:00
parent 2ac5e14809
commit 46b82311f4
No known key found for this signature in database
GPG Key ID: 48797EA19C19BED1
1 changed files with 2 additions and 2 deletions

View File

@ -8,15 +8,15 @@ else
location="$location/rss.xml"
fi
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > $location
{
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
echo "<rss version=\"2.0\">"
echo "<channel>"
echo "<title>~$user on TTBP</title>"
echo "<link>http://tilde.town/~$user/blog/</link>"
echo "<updated>$(date)</updated>"
echo "<description>$user's blog on tilde.town</description>"
} >> $location
} > $location
for x in $(ls /home/$user/.ttbp/entries)
do