summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update7
1 files changed, 4 insertions, 3 deletions
diff --git a/sfeed_update b/sfeed_update
index 3b1476f..398c408 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -143,11 +143,12 @@ feed() {
fi
rm -f "${tmpfeedfile}.merge"
- # atomic move.
- if ! mv "${tmpfeedfile}.order" "${sfeedfile}"; then
- log "${name}" "FAIL (MOVE)"
+ # copy
+ if ! cp "${tmpfeedfile}.order" "${sfeedfile}"; then
+ log "${name}" "FAIL (COPY)"
return
fi
+ rm -f "${tmpfeedfile}.order"
# OK
log "${name}" "OK"