brews.sh: change HOMEBREW_MINIMUM_CURL_VERSION only for debian 7

I am not sure why we also checked for HOMEBREW_FORCE_HOMEBREW_ON_LINUX.
If the minimum curl version needs to be changed, we should introduce
specific env variables for each case that needs it, instead of
asking for HOMEBREW_FORCE_HOMEBREW_ON_LINUX to be set too (which is not the case
in the linuxbrew-core repo for example)
This commit is contained in:
Michka Popoff 2021-07-23 14:51:33 +02:00
parent b18bbacced
commit bc8613cbe8
No known key found for this signature in database
GPG Key ID: 033D03F151030611

View File

@ -412,7 +412,7 @@ else
# This is set by the user environment. # This is set by the user environment.
# shellcheck disable=SC2154 # shellcheck disable=SC2154
if [[ -n "${HOMEBREW_FORCE_HOMEBREW_ON_LINUX}" && -n "${HOMEBREW_ON_DEBIAN7}" ]] if [[ -n "${HOMEBREW_ON_DEBIAN7}" ]]
then then
# Special version for our debian 7 docker container used to build patchelf and binutils # Special version for our debian 7 docker container used to build patchelf and binutils
HOMEBREW_MINIMUM_CURL_VERSION="7.25.0" HOMEBREW_MINIMUM_CURL_VERSION="7.25.0"