From a5e969dfb53d54e24ae6d291c5474475324cff31 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 2 Jan 2013 11:08:44 -0800 Subject: 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 --- Library/ENV/4.3/make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/ENV') 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 "$@" -- cgit v1.2.3