Skip to content

Commit ba3e3da

Browse files
committed
brew.sh: enable concurrent downloads for devcmdrun.
We did this already for `HOMEBREW_DEVELOPER` so let's do the same for `devcmdrun` users building up to a rollout for everyone in 4.7.0.
1 parent eade0c3 commit ba3e3da

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Library/Homebrew/brew.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -999,12 +999,13 @@ if [[ -n "${HOMEBREW_DEVELOPER}" || -n "${HOMEBREW_DEV_CMD_RUN}" ]]
999999
then
10001000
# Always run with Sorbet for Homebrew developers or when a Homebrew developer command has been run.
10011001
export HOMEBREW_SORBET_RUNTIME="1"
1002-
fi
10031002

1004-
if [[ -n "${HOMEBREW_DEVELOPER}" && -z "${HOMEBREW_DOWNLOAD_CONCURRENCY}" ]]
1005-
then
1006-
# Enable concurrent downloads for Homebrew developers who haven't explicitly set a value.
1007-
export HOMEBREW_DOWNLOAD_CONCURRENCY="auto"
1003+
# Enable concurrent downloads for Homebrew developers or when a Homebrew developer command has been
1004+
# run who haven't explicitly set a value.
1005+
if [[ -z "${HOMEBREW_DOWNLOAD_CONCURRENCY}" ]]
1006+
then
1007+
export HOMEBREW_DOWNLOAD_CONCURRENCY="auto"
1008+
fi
10081009
fi
10091010

10101011
# Provide a (temporary, undocumented) way to disable Sorbet globally if needed

0 commit comments

Comments
 (0)