Skip to content

Commit 64efed2

Browse files
authored
Merge pull request #19391 from gibfahn/no_sorbet_even_if_dev
fix: HOMEBREW_NO_SORBET_RUNTIME should work even if developer
2 parents 42cbf27 + 1ff3b62 commit 64efed2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Library/Homebrew/brew.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -969,13 +969,6 @@ then
969969
export HOMEBREW_DEVELOPER_COMMAND="1"
970970
fi
971971

972-
# Provide a (temporary, undocumented) way to disable Sorbet globally if needed
973-
# to avoid reverting the above.
974-
if [[ -n "${HOMEBREW_NO_SORBET_RUNTIME}" ]]
975-
then
976-
unset HOMEBREW_SORBET_RUNTIME
977-
fi
978-
979972
if [[ -n "${HOMEBREW_DEVELOPER_COMMAND}" && -z "${HOMEBREW_DEVELOPER}" ]]
980973
then
981974
if [[ -z "${HOMEBREW_DEV_CMD_RUN}" ]]
@@ -999,6 +992,13 @@ then
999992
export HOMEBREW_SORBET_RUNTIME="1"
1000993
fi
1001994

995+
# Provide a (temporary, undocumented) way to disable Sorbet globally if needed
996+
# to avoid reverting the above.
997+
if [[ -n "${HOMEBREW_NO_SORBET_RUNTIME}" ]]
998+
then
999+
unset HOMEBREW_SORBET_RUNTIME
1000+
fi
1001+
10021002
if [[ -f "${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh" ]]
10031003
then
10041004
HOMEBREW_BASH_COMMAND="${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh"

0 commit comments

Comments
 (0)