qubes-dom0-update: fix removing backup template after the operation

qvm-remove got confirmation prompt, add -f to avoid it.
pull/53/head mm_9cf273d1
Marek Marczykowski-Górecki 5 years ago
parent cf76a3cbbb
commit 9cf273d187
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -233,7 +233,7 @@ if [ ${#PKGS[@]} -gt 0 ]; then
# Remove backup, if we made one. Better to do this only on success and
# potentially leave extra backups around than do it on an exit trap and
# clean up more reliably but potentially brick a system.
qvm-remove -- "$TEMPLATE_BACKUP"
qvm-remove -f -- "$TEMPLATE_BACKUP"
fi
if [ -n "$TEMPLATE" -a -n "$TEMPLATE_NETVM" -a x"$TEMPLATE_NETVM" != xNone ]; then

Loading…
Cancel
Save