From ce3ad61f8f259413487dcad27ae14d5c581dff31 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 2 Jul 2026 21:14:17 +0200 Subject: [PATCH] Update lib_host_backup_common.sh --- scripts/backup_restore/lib_host_backup_common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/backup_restore/lib_host_backup_common.sh b/scripts/backup_restore/lib_host_backup_common.sh index 5b5c6da6..034be8f0 100755 --- a/scripts/backup_restore/lib_host_backup_common.sh +++ b/scripts/backup_restore/lib_host_backup_common.sh @@ -1157,12 +1157,12 @@ hb_ask_pbs_encryption() { # unset the --keyfile flag, and return 1 so the caller can # bail out and drop the operator back at the previous menu. if ! hb_pbs_setup_recovery; then - # Cancel = leave no residue. Wipe both the freshly-created - # keyfile and any partial recovery blob so the state-dir - # is clean for the next try. + # Cancel between dialogs: wipe residue silently and hand + # control back. No terminal output — the outer menu will + # re-render and printing anything here would break the + # dialog-to-dialog transition. rm -f "$key_file" "$recovery_enc" 2>/dev/null HB_PBS_KEYFILE_OPT="" - msg_warn "$(hb_translate "Encryption cancelled — a recovery passphrase is required to encrypt. Returning to the previous menu.")" return 1 fi else