src/zlevis-encrypt typeset update

This commit is contained in:
Luc Bijl 2025-02-19 21:48:25 +01:00
parent 361efcc26b
commit 4d1ab8d9fc

View file

@ -4,7 +4,7 @@
set -e set -e
# Summary of the script's functionality # Summary of the script's functionality
summary="Encrypts using a TPM2.0 chip binding policy." summary="Encrypts using a TPM2.0 chip binding policy"
# TPM2.0 owner hierarchy to be used by the Operating System # TPM2.0 owner hierarchy to be used by the Operating System
auth="o" auth="o"
@ -60,7 +60,7 @@ tpm2tools_version=$(tpm2_createprimary -v | awk -F'version="' '{print $2}' | awk
# Check if the tpm2-tools version is supported # Check if the tpm2-tools version is supported
if [ -z "$tpm2tools_version" ] || [ "$tpm2tools_version" -lt 4 ] || [ "$tpm2tools_version" -gt 5 ]; then if [ -z "$tpm2tools_version" ] || [ "$tpm2tools_version" -lt 4 ] || [ "$tpm2tools_version" -gt 5 ]; then
echo "The tpm2 pin requires a tpm2-tools version between 4 and 5" echo "The tpm2 pin requires a tpm2-tools version between 4 and 5" >&2
exit 1 exit 1
fi fi