diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-02-18 15:46:49 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-02-18 15:46:49 +0100 |
commit | 875d1b0305f0dc404909907574242ac1740f6426 (patch) | |
tree | f399c986c57de855d4e0aca7ba0837b66fecf57e /sfeed_update | |
parent | ea4fc6a196202a7f69f66d9a720b3d645d8dc7fb (diff) |
sfeed_update: revert more merge logic
this makes sure the sort order of the initial feed sync works again.
Diffstat (limited to 'sfeed_update')
-rwxr-xr-x | sfeed_update | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sfeed_update b/sfeed_update index 5e265a7..6c4ed8d 100755 --- 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) & } |