From e96f24af8bb6e97156a891de90026c340596ba5e Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 21 May 2016 14:06:24 +0200 Subject: 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(). --- sfeed_update | 3 +-- 1 file changed, 1 insertion(+), 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) & } -- cgit v1.2.3