Remove .pacnew if it exists
This commit is contained in:
parent
267ff3443c
commit
bb87e64082
1 changed files with 5 additions and 0 deletions
|
@ -52,3 +52,8 @@ fi
|
||||||
# Download, ready, output
|
# Download, ready, output
|
||||||
curl -s "$(make-url)" | sed 's/^#\([^#].*\)/\1/' > "$dest"
|
curl -s "$(make-url)" | sed 's/^#\([^#].*\)/\1/' > "$dest"
|
||||||
echo "Saved in ${dest}"
|
echo "Saved in ${dest}"
|
||||||
|
|
||||||
|
if [[ -f "${dest}.pacnew" ]]; then
|
||||||
|
rm "${dest}.pacnew"
|
||||||
|
echo "Removed ${dest}.pacnew"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue