utils/wrapper.sh: fix source
calls
We need to `source utils/helpers.sh` before calling `odie`. We also don't need to `source utils/wrapper.sh` again here, because we are already in `utils/wrapper.sh`.
This commit is contained in:
parent
2dfc1b4eb8
commit
17435f583f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user