From 86516e563fd7cd2d3777010d54cb4991acad844f Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 7 Nov 2009 18:09:48 +0000 Subject: Set ENV[HOMEBREW_BREW_FILE] Thus install.rb gets the path to the instantiating brew process rather than whichever is first in the PATH. Not to mention Homebrew doesn't *have* to be in the PATH. --- bin/brew | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/brew b/bin/brew index 57352b4a1..ccb46f3a6 100755 --- a/bin/brew +++ b/bin/brew @@ -6,6 +6,7 @@ Dir.getwd rescue abort "The current working directory doesn't exist, cannot proceed." HOMEBREW_BREW_FILE = File.expand_path __FILE__ +ENV['HOMEBREW_BREW_FILE'] = HOMEBREW_BREW_FILE def homebrew_rubylib_path lib_path = "/../../Library/Homebrew" -- cgit v1.2.3