Skip to content

Commit

Permalink
fix: use double brackets for if clause with and & or concatenation
Browse files Browse the repository at this point in the history
Previous does not work with Bash version 5.2.15(1)-release (x86_64-pc-linux-gnu)
  • Loading branch information
Gitsarry authored and flexiondotorg committed Aug 27, 2024
1 parent 42c90e9 commit 790484c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 790484c

Please sign in to comment.