refactor: add quoting to tpm condition for window 11

This commit is contained in:
Martin Wimpress 2024-06-30 15:33:10 +01:00 committed by Martin Wimpress
parent e18b7ed591
commit 6a4705e365
1 changed files with 1 additions and 1 deletions

View File

@ -1532,7 +1532,7 @@ EOF
fi fi
# Enable TPM for Windows 11 # Enable TPM for Windows 11
if [ "${OS}" == "windows" ] && [ "${RELEASE}" == 11 ] || [ "${OS}" == "windows-server" ] && [ "${RELEASE}" == "2022" ]; then if [ "${OS}" == "windows" ] && [ "${RELEASE}" == "11" ] || [ "${OS}" == "windows-server" ] && [ "${RELEASE}" == "2022" ]; then
echo "tpm=\"on\"" >> "${CONF_FILE}" echo "tpm=\"on\"" >> "${CONF_FILE}"
echo "secureboot=\"off\"" >> "${CONF_FILE}" echo "secureboot=\"off\"" >> "${CONF_FILE}"
fi fi