Skip to content

Commit

Permalink
NEWT: fix whiptail line width for output that could wrap line content…
Browse files Browse the repository at this point in the history
… over multiple lines
  • Loading branch information
tlaurion committed Oct 29, 2021
1 parent 561d01c commit 59aafa5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion initrd/bin/flash-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ while true; do
/bin/flash.sh "$ROM"
fi
whiptail --title 'ROM Flashed Successfully' \
--msgbox "${ROM#"/media/"}\n\nhas been flashed successfully.\n\nPress Enter to reboot\n" 16 60
--msgbox "${ROM#"/media/"}\n\nhas been flashed successfully.\n\nPress Enter to reboot\n" 16 90
umount /media
/bin/reboot
else
Expand Down
6 changes: 3 additions & 3 deletions initrd/bin/gpg-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ gpg_post_gen_mgmt() {
cp "/tmp/${GPG_GEN_KEY}.asc" "/media/${GPG_GEN_KEY}.asc"
if [ $? -eq 0 ]; then
whiptail --title "The GPG Key Copied Successfully" \
--msgbox "${GPG_GEN_KEY}.asc copied successfully." 16 60
--msgbox "${GPG_GEN_KEY}.asc copied successfully." 16 90
else
whiptail $BG_COLOR_ERROR --title 'ERROR: Copy Failed' \
--msgbox "Unable to copy ${GPG_GEN_KEY}.asc to /media" 16 60
--msgbox "Unable to copy ${GPG_GEN_KEY}.asc to /media" 16 90
fi
umount /media
fi
Expand Down Expand Up @@ -204,7 +204,7 @@ while true; do
"l" )
GPG_KEYRING=`gpg -k`
whiptail --title 'GPG Keyring' \
--msgbox "${GPG_KEYRING}" 16 60
--msgbox "${GPG_KEYRING}" 16 90
;;
"p" )
if (whiptail --title 'Export Public Key(s) to USB drive?' \
Expand Down
4 changes: 2 additions & 2 deletions initrd/bin/kexec-select-boot
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ verify_global_hashes()
if [ "$gui_menu" = "y" ]; then
CHANGED_FILES=$(grep -v 'OK$' /tmp/hash_output | cut -f1 -d ':')
whiptail $BG_COLOR_ERROR --title 'ERROR: Boot Hash Mismatch' \
--msgbox "The following files failed the verification process:\n${CHANGED_FILES}\nExiting to a recovery shell" 16 60
--msgbox "The following files failed the verification process:\n${CHANGED_FILES}\nExiting to a recovery shell" 16 90
fi
die "$TMP_HASH_FILE: boot hash mismatch"
fi
Expand Down Expand Up @@ -240,7 +240,7 @@ default_select() {
if [ "$gui_menu" = "y" ]; then
CHANGED_FILES=$(grep -v 'OK$' /tmp/hash_output | cut -f1 -d ':')
whiptail $BG_COLOR_ERROR --title 'ERROR: Default Boot Hash Mismatch' \
--msgbox "The following files failed the verification process:\n${CHANGED_FILES}\nExiting to a recovery shell" 16 60
--msgbox "The following files failed the verification process:\n${CHANGED_FILES}\nExiting to a recovery shell" 16 90
fi
die "!!! $TMP_DEFAULT_HASH_FILE: default boot hash mismatch"
fi
Expand Down

0 comments on commit 59aafa5

Please sign in to comment.