mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
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:
parent
85e6f60438
commit
e98b26c32a
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user