diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/global.rb | 4 | ||||
| -rwxr-xr-x | Library/Homebrew/install.rb | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 52f3dd6a8..05fc144e2 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -38,6 +38,10 @@ else HOMEBREW_CACHE=Pathname.new("~/Library/Caches/Homebrew").expand_path end +if not defined? HOMEBREW_BREW_FILE + HOMEBREW_BREW_FILE = ENV['HOMEBREW_BREW_FILE'] or `which brew`.chomp +end + HOMEBREW_PREFIX = Pathname.new(HOMEBREW_BREW_FILE).dirname.parent # Where we link under HOMEBREW_REPOSITORY = Pathname.new(HOMEBREW_BREW_FILE).realpath.dirname.parent # Where .git is found diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 887705e70..24fb82148 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -1,6 +1,4 @@ #!/usr/bin/ruby -HOMEBREW_BREW_FILE = `which brew`.strip - require 'global' def text_for_keg_only_formula f |
