aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV/4.3/make
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-02 11:08:44 -0800
committerAdam Vandenberg2013-01-03 09:14:36 -0800
commita5e969dfb53d54e24ae6d291c5474475324cff31 (patch)
tree766f349dc140ae8de49e54e762cb46f244cc5152 /Library/ENV/4.3/make
parent7a4facae2fc4468e2bc80c847ede1e51a1ed6230 (diff)
downloadbrew-a5e969dfb53d54e24ae6d291c5474475324cff31.tar.bz2
superenv: make HOMEBREW_FILE available
Superenv scripts have a stripped PATH, which may not include the brew binary itself. Make this explicitly available to superenv scripts. Fixes bsdmake wrapper. Closes Homebrew/homebrew#16805. Closes Homebrew/homebrew#16846. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/ENV/4.3/make')
-rwxr-xr-xLibrary/ENV/4.3/make2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/make b/Library/ENV/4.3/make
index b3df33114..1d717718b 100755
--- a/Library/ENV/4.3/make
+++ b/Library/ENV/4.3/make
@@ -4,7 +4,7 @@ if [ $(basename "$0") == "bsdmake" ]; then
pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
bsd="$pwd/../../../bin/bsdmake"
# bsdmake used to be keg-only: support users who don't run brew doctor
- [ -x "$bsd" ] || bsd="$(brew --prefix bsdmake)/bin/bsdmake"
+ [ -x "$bsd" ] || bsd="$(${HOMEBREW_BREW_FILE} --prefix bsdmake)/bin/bsdmake"
exec "$bsd" "$@"
else
exec xcrun make "$@"