Update lib_host_backup_common.sh

This commit is contained in:
MacRimi
2026-07-02 21:14:17 +02:00
parent 0ad84572a7
commit ce3ad61f8f

View File

@@ -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