Merge pull request #20508 from Homebrew/wrapper-source

utils/wrapper.sh: fix `source` calls
This commit is contained in:
Carlo Cabrera 2025-08-19 04:50:40 +00:00 committed by GitHub
commit 64e548fb80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,13 +61,13 @@ check-brew-wrapper() {
if ((HOMEBREW_BREW_CALLER_CHECK_EXIT_CODE != 0))
then
source "${HOMEBREW_LIBRARY}/Homebrew/utils/helpers.sh"
# Error message already printed above when populating `HOMEBREW_BREW_CALLER`.
odie "failed to check the path to the parent process!"
fi
if [[ "${HOMEBREW_BREW_CALLER:-}" != "${HOMEBREW_FORCE_BREW_WRAPPER}" ]]
then
source "${HOMEBREW_LIBRARY}/Homebrew/utils/wrapper.sh"
odie-with-wrapper-message "but \`brew\` was invoked by ${HOMEBREW_BREW_CALLER}."
fi
fi