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