diff options
author | Tom Willemse | 2014-04-06 11:10:40 +0200 |
---|---|---|
committer | Tom Willemse | 2014-04-06 11:10:40 +0200 |
commit | bb87e640828246f5730ee409df148561486d029a (patch) | |
tree | c994a3a83f36eca2da8b26381ceacb6eb03b1eb1 | |
parent | 267ff3443c1aea43bf159036f78187ff7db46d7f (diff) | |
download | update-mirrors-bb87e640828246f5730ee409df148561486d029a.tar.gz update-mirrors-bb87e640828246f5730ee409df148561486d029a.zip |
Remove .pacnew if it exists
-rwxr-xr-x | update-mirrors | 5 |
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 |