summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsfeed_update7
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) &
}