Ensure BREW_FILE is an absolute path
It's a constant and Dir.getwd can change.
This commit is contained in:
parent
2dc17b19f4
commit
4266d6c1c7
2
bin/brew
2
bin/brew
@ -5,7 +5,7 @@
|
|||||||
# odd exceptions. Reduce our support burden by showing a user-friendly error.
|
# 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."
|
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
|
def homebrew_rubylib_path
|
||||||
lib_path = "/../../Library/Homebrew"
|
lib_path = "/../../Library/Homebrew"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user