diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index ee48f55738..d74fc2578b 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -969,13 +969,6 @@ then export HOMEBREW_DEVELOPER_COMMAND="1" fi -# Provide a (temporary, undocumented) way to disable Sorbet globally if needed -# to avoid reverting the above. -if [[ -n "${HOMEBREW_NO_SORBET_RUNTIME}" ]] -then - unset HOMEBREW_SORBET_RUNTIME -fi - if [[ -n "${HOMEBREW_DEVELOPER_COMMAND}" && -z "${HOMEBREW_DEVELOPER}" ]] then if [[ -z "${HOMEBREW_DEV_CMD_RUN}" ]] @@ -999,6 +992,13 @@ then export HOMEBREW_SORBET_RUNTIME="1" fi +# Provide a (temporary, undocumented) way to disable Sorbet globally if needed +# to avoid reverting the above. +if [[ -n "${HOMEBREW_NO_SORBET_RUNTIME}" ]] +then + unset HOMEBREW_SORBET_RUNTIME +fi + if [[ -f "${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh" ]] then HOMEBREW_BASH_COMMAND="${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh"