File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -149,17 +149,20 @@ prompt_update_checksums()
149
149
generate_totp_htop ()
150
150
{
151
151
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"
157
163
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."
160
165
fi
161
- # clear screen
162
- printf " \033c"
163
166
}
164
167
165
168
update_totp ()
You can’t perform that action at this time.
0 commit comments