File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -149,17 +149,20 @@ prompt_update_checksums()
149149generate_totp_htop ()
150150{
151151 echo " Scan the QR code to add the new TOTP secret"
152- /bin/seal-totp " $BOARD_NAME "
153- if [ -x /bin/hotp_verification ]; then
154- echo " Once you have scanned the QR code, hit Enter to configure your HOTP USB Security Dongle (e.g. Librem Key or Nitrokey)"
155- read
156- /bin/seal-hotpkey
152+ if /bin/seal-totp " $BOARD_NAME " ; then
153+ if [ -x /bin/hotp_verification ]; then
154+ echo " Once you have scanned the QR code, hit Enter to configure your HOTP USB Security Dongle (e.g. Librem Key or Nitrokey)"
155+ read
156+ /bin/seal-hotpkey
157+ else
158+ echo " Once you have scanned the QR code, hit Enter to continue"
159+ read
160+ fi
161+ # clear screen
162+ printf " \033c"
157163 else
158- echo " Once you have scanned the QR code, hit Enter to continue"
159- read
164+ warn " Sealing of measurements inside of TPM failed. You might want to take ownership of TPM by resetting it."
160165 fi
161- # clear screen
162- printf " \033c"
163166}
164167
165168update_totp ()
You can’t perform that action at this time.
0 commit comments