Skip to content

Commit e98b26c

Browse files
committed
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>
1 parent 85e6f60 commit e98b26c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

initrd/bin/oem-factory-reset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,8 +1326,8 @@ fi
13261326

13271327
## Show to user current configured secrets prior of rebooting
13281328
whiptail --msgbox "
1329-
$passphrases" \
1330-
$HEIGHT $(($WIDTH*2)) --title "Configured secrets"
1329+
$(echo "$passphrases" | fold -w $((WIDTH-20)))" \
1330+
$HEIGHT $WIDTH --title "Configured secrets"
13311331

13321332
## all done -- reboot
13331333
whiptail --msgbox "

0 commit comments

Comments
 (0)