Ensure BREW_FILE is an absolute path

It's a constant and Dir.getwd can change.
This commit is contained in:
Max Howell 2009-11-07 18:06:00 +00:00
parent 2dc17b19f4
commit 4266d6c1c7

View File

@ -5,7 +5,7 @@
# odd exceptions. Reduce our support burden by showing a user-friendly error.
Dir.getwd rescue abort "The current working directory doesn't exist, cannot proceed."
BREW_FILE = __FILE__
BREW_FILE = File.expand_path __FILE__
def homebrew_rubylib_path
lib_path = "/../../Library/Homebrew"