aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xupdate-mirrors5
1 files changed, 5 insertions, 0 deletions
diff --git a/update-mirrors b/update-mirrors
index e1f2df4..0f42b01 100755
--- a/update-mirrors
+++ b/update-mirrors
@@ -52,3 +52,8 @@ fi
# Download, ready, output
curl -s "$(make-url)" | sed 's/^#\([^#].*\)/\1/' > "$dest"
echo "Saved in ${dest}"
+
+if [[ -f "${dest}.pacnew" ]]; then
+ rm "${dest}.pacnew"
+ echo "Removed ${dest}.pacnew"
+fi