diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-05-21 14:06:24 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-05-21 14:06:24 +0200 |
commit | e96f24af8bb6e97156a891de90026c340596ba5e (patch) | |
tree | 98dac4f542b48a948ad5f34749607d0e52f58524 /sfeed_update | |
parent | ab3faa2db543523872a6a3b0cf7f362f6459a5e4 (diff) |
sfeed_update: unique sort feed on first creation
when a feed file is created for the first time make sure to sort and
filter duplicate items using the same logic as merge().
Diffstat (limited to 'sfeed_update')
-rwxr-xr-x | sfeed_update | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfeed_update b/sfeed_update index 5bc6388..797ba6f 100755 --- a/sfeed_update +++ b/sfeed_update @@ -86,8 +86,7 @@ feed() { # overwrite old file with updated file mv "${sfeedfilenew}" "${sfeedfile}" else - # else just copy - mv "${tmpfeedfile}" "${sfeedfile}" + merge "/dev/null" "${tmpfeedfile}" > "${sfeedfile}" fi fi) & } |