Skip to content

Commit d9e0ed5

Browse files
authored
Merge pull request #21462 from brc-dd/fix/21461
Fix handling of HOMEBREW_CURLRC in update.sh to support custom config paths
2 parents eb7c35a + 9e6823e commit d9e0ed5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Library/Homebrew/cmd/update.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,9 @@ EOS
645645
if [[ -z "${HOMEBREW_CURLRC}" ]]
646646
then
647647
CURL_DISABLE_CURLRC_ARGS=(-q)
648+
elif [[ "${HOMEBREW_CURLRC}" == /* ]]
649+
then
650+
CURL_DISABLE_CURLRC_ARGS=(-q --config "${HOMEBREW_CURLRC}")
648651
else
649652
CURL_DISABLE_CURLRC_ARGS=()
650653
fi

0 commit comments

Comments
 (0)