From 790484cb7d2a2d9031ccc49e03d1f97bb65a50d5 Mon Sep 17 00:00:00 2001 From: Gitsarry <131813959+Gitsarry@users.noreply.github.com> Date: Mon, 12 Aug 2024 23:56:14 +0200 Subject: [PATCH] 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) --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 5f15598..f9e0151 100755 --- a/quickget +++ b/quickget @@ -1462,8 +1462,8 @@ EOF echo "disk_size=\"64G\"" >> "${CONF_FILE}" fi - # Enable TPM for Windows 11 - if [ "${OS}" == "windows" ] && [ "${RELEASE}" == "11" ] || [ "${OS}" == "windows-server" ] && [ "${RELEASE}" == "2022" ]; then + # Enable TPM for Windows 11 and Windows Server 2022 + if [[ "${OS}" == "windows" && "${RELEASE}" == "11" || "${OS}" == "windows-server" && "${RELEASE}" == "2022" ]]; then echo "tpm=\"on\"" >> "${CONF_FILE}" echo "secureboot=\"off\"" >> "${CONF_FILE}" fi