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:
Jonathon Hall 2023-02-22 13:31:15 -05:00
parent 55a41c3fdb
commit cf3ee19795
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -27,7 +27,7 @@ else
HOTPKEY_BRANDING="HOTP USB Security Dongle" HOTPKEY_BRANDING="HOTP USB Security Dongle"
fi fi
if [ $CONFIG_TPM = "y" ]; then if [ "$CONFIG_TPM" = "y" ]; then
tpm nv_readvalue \ tpm nv_readvalue \
-in 4d47 \ -in 4d47 \
-sz 312 \ -sz 312 \