Mike McQuaid e9b4979f40
Add support for Homebrew wrappers
Allow the ability for a system administrator to use
`HOMEBREW_BREW_WRAPPER` and `HOMEBREW_FORCE_BREW_WRAPPER` variables to
enforce the usage of a particular `brew` command for non-trivial (e.g.
`brew --prefix` is considered trivial, it doesn't need to write to the
prefix) Homebrew commands.

This also introduces a `HOMEBREW_ORIGINAL_BREW_FILE` variable for some
internal usage; `HOMEBREW_BREW_FILE` was being used internally for
both "how should we shell out to Homebrew" and "what should we use
to check permissions on Homebrew". `HOMEBREW_ORIGINAL_BREW_FILE` is
now used just for the latter case.

Inspired by conversation in
https://github.com/Homebrew/homebrew-bundle/pull/1551 which suggested
this was worth fixing in wider than just `brew bundle`.
2025-01-07 17:40:18 +00:00
..
2024-11-22 21:04:51 -08:00
2024-10-02 10:03:12 -07:00
2025-01-07 17:40:18 +00:00
2024-12-28 15:53:35 -05:00
2024-12-05 14:26:30 -05:00
2024-08-10 17:52:26 -07:00
2024-07-14 08:49:39 -04:00
2024-10-02 10:03:12 -07:00
2024-09-04 22:54:20 +02:00
2024-07-09 20:01:43 -04:00