Skip to content

Commit 9e6823e

Browse files
committed
Fix handling of HOMEBREW_CURLRC in update.sh to support custom config paths
1 parent 414e0da commit 9e6823e

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)