fix: use double brackets for if clause with and & or concatenation
Previous does not work with Bash version 5.2.15(1)-release (x86_64-pc-linux-gnu)
This commit is contained in:
parent
42c90e9771
commit
790484cb7d
4
quickget
4
quickget
|
@ -1462,8 +1462,8 @@ EOF
|
||||||
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
|
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable TPM for Windows 11
|
# Enable TPM for Windows 11 and Windows Server 2022
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue