Skip to content

Commit

Permalink
Fix non-working if then boolean logic
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 Aug 12, 2024
1 parent a13d554 commit caedfc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ EOF
fi

# 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 "secureboot=\"off\"" >> "${CONF_FILE}"
fi
Expand Down

0 comments on commit caedfc1

Please sign in to comment.