brew.sh: set HOMEBREW_RUBY3 earlier

This commit is contained in:
Bo Anderson 2023-11-22 00:51:43 +00:00
parent 189d709c41
commit 6502524456
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -502,6 +502,11 @@ case "$*" in
;;
esac
if [[ -n "${HOMEBREW_DEVELOPER}" ]]
then
export HOMEBREW_RUBY3="1"
fi
# TODO: bump version when new macOS is released or announced and update references in:
# - docs/Installation.md
# - https://github.com/Homebrew/install/blob/HEAD/install.sh
@ -945,11 +950,6 @@ then
export HOMEBREW_SORBET_RUNTIME="1"
fi
if [[ -n "${HOMEBREW_DEVELOPER}" ]]
then
export HOMEBREW_RUBY3="1"
fi
if [[ -f "${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh" ]]
then
HOMEBREW_BASH_COMMAND="${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh"