sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 875d1b0305f0dc404909907574242ac1740f6426
parent ea4fc6a196202a7f69f66d9a720b3d645d8dc7fb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 18 Feb 2018 15:46:49 +0100

sfeed_update: revert more merge logic

this makes sure the sort order of the initial feed sync works again.

Diffstat:
Msfeed_update | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sfeed_update b/sfeed_update @@ -89,11 +89,10 @@ feed() { if [ -e "${sfeedfile}" ]; then merge "${sfeedfile}" "${tmpfeedfile}" > "${sfeedfilenew}" - # append new entries to feed file. - cat "${sfeedfilenew}" >> "${sfeedfile}" - rm -f "${sfeedfilenew}" + # overwrite old file with updated file + mv "${sfeedfilenew}" "${sfeedfile}" else - mv "${tmpfeedfile}" "${sfeedfile}" + merge "/dev/null" "${tmpfeedfile}" > "${sfeedfile}" fi fi) & }