put rm file in correct spot

This commit is contained in:
James Barnett 2017-02-14 09:45:31 -06:00
parent d162241a1b
commit e3537fab43
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -93,10 +93,10 @@ for CONFIG in $SNAPPER_CONFIGS; do
post)
if [[ -f $prefile ]]; then
printf "$($snapper_cmd --description "$(truncate_description $PACMAN_POST_DESCRIPTION)" --pre-number "$(< "$prefile")")\n"
rm -f "$prefile"
else
warning "%s does not exist, so no post snapshot for %s will be taken. If you are initially installing $name, this is normal." "$prefile" "$CONFIG"
fi
rm -f "$prefile"
;;
esac