Use better suggested solution (fold)

Uses fold on the entire passphrase string now; tested in recovery shell of NK Heads 2.1.
Reverted change of WIDTH parameter (first commit of this PR).

Signed-off-by: Christian Foerster <christian.foerster@mailfence.com>
This commit is contained in:
UndeadDevel 2023-12-03 17:43:49 +00:00 committed by Christian Foerster
parent 85e6f60438
commit e98b26c32a

View File

@ -1326,8 +1326,8 @@ fi
## Show to user current configured secrets prior of rebooting
whiptail --msgbox "
$passphrases" \
$HEIGHT $(($WIDTH*2)) --title "Configured secrets"
$(echo "$passphrases" | fold -w $((WIDTH-20)))" \
$HEIGHT $WIDTH --title "Configured secrets"
## all done -- reboot
whiptail --msgbox "