mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-23 14:52:27 +00:00
seal-hotpkey: Fix quoting in CONFIG_TPM test
$CONFIG_TPM needs to be quoted, or [ syntax is incorrect when it's empty. Fixes errors in console with TPM2 (but behavior was correct due to [ still returning false as expected). Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
55a41c3fdb
commit
cf3ee19795
@ -27,7 +27,7 @@ else
|
||||
HOTPKEY_BRANDING="HOTP USB Security Dongle"
|
||||
fi
|
||||
|
||||
if [ $CONFIG_TPM = "y" ]; then
|
||||
if [ "$CONFIG_TPM" = "y" ]; then
|
||||
tpm nv_readvalue \
|
||||
-in 4d47 \
|
||||
-sz 312 \
|
||||
|
Loading…
Reference in New Issue
Block a user