qubes-dom0-update: fix removing backup template after the operation
qvm-remove got confirmation prompt, add -f to avoid it.
This commit is contained in:
parent
cf76a3cbbb
commit
9cf273d187
@ -233,7 +233,7 @@ if [ ${#PKGS[@]} -gt 0 ]; then
|
|||||||
# Remove backup, if we made one. Better to do this only on success and
|
# 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
|
# potentially leave extra backups around than do it on an exit trap and
|
||||||
# clean up more reliably but potentially brick a system.
|
# clean up more reliably but potentially brick a system.
|
||||||
qvm-remove -- "$TEMPLATE_BACKUP"
|
qvm-remove -f -- "$TEMPLATE_BACKUP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$TEMPLATE" -a -n "$TEMPLATE_NETVM" -a x"$TEMPLATE_NETVM" != xNone ]; then
|
if [ -n "$TEMPLATE" -a -n "$TEMPLATE_NETVM" -a x"$TEMPLATE_NETVM" != xNone ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user