From bb87e640828246f5730ee409df148561486d029a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 6 Apr 2014 11:10:40 +0200 Subject: Remove .pacnew if it exists --- update-mirrors | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3-54-g00ecf