seal-libremkey: add newlines for readability

improve readability of console output by adding newlines as needed

Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
Matt DeVillier 2019-06-28 23:26:20 -05:00
parent 94f7f98022
commit db5d282a7b
No known key found for this signature in database
GPG Key ID: 2BBB776A35B978FD

View File

@ -59,12 +59,15 @@ if ! libremkey_hotp_verification info ; then
fi
fi
read -s -p "Enter your Librem Key Admin PIN" admin_pin
echo
echo -e ""
read -s -p "Enter your Librem Key Admin PIN: " admin_pin
echo -e "\n"
libremkey_hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value
if [ $? -ne 0 ]; then
read -s -p "Error setting HOTP secret, re-enter Admin PIN and try again:" admin_pin
echo -e "\n"
read -s -p "Error setting HOTP secret, re-enter Admin PIN and try again: " admin_pin
echo -e "\n"
if ! libremkey_hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value ; then
# don't leak key on failure
shred -n 10 -z -u "$HOTP_SECRET" 2> /dev/null
@ -91,7 +94,7 @@ echo $counter_value > $HOTP_COUNTER \
#|| die "Unable to create hotp counter file"
mount -o remount,ro /boot
echo "Librem Key initialized successfully. Press Enter to continue."
echo -e "\nLibrem Key initialized successfully. Press Enter to continue."
read
exit 0