summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-05-21 14:06:24 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-05-21 14:06:24 +0200
commite96f24af8bb6e97156a891de90026c340596ba5e (patch)
tree98dac4f542b48a948ad5f34749607d0e52f58524 /sfeed_update
parentab3faa2db543523872a6a3b0cf7f362f6459a5e4 (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-xsfeed_update3
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) &
}