diff --git a/src/update-xslfeed b/src/update-xslfeed index 8d46ba4..dfc20cc 100644 --- a/src/update-xslfeed +++ b/src/update-xslfeed @@ -1,11 +1,14 @@ #!/bin/sh get-feeds -combine-md-files Feeds $HOME/xslfeed/feeds/* > $HOME/xslfeed/feeds.md for file in $HOME/xslfeed/feeds/* do - mark-new-feed-entries $file > $file + other_file="$file.prev" + cp $file $other_file + mark-new-feed-entries $other_file > $file + rm $other_file done +combine-md-files Feeds $HOME/xslfeed/feeds/* > $HOME/xslfeed/feeds.md generate-website-from-md $HOME/xslfeed/feeds.md /etc/xslfeed/style.css