aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-10-29 13:32:52 +0000
committerGitHub2017-10-29 13:32:52 +0000
commite94810950d7fe1f212f6c11ffcdefb6eaaaf7c01 (patch)
tree530d97f4cd2e18bf0da1794e94141aa3c88ddc51 /Library
parent7caca570736a6232512328992b398270dbbf3f4f (diff)
parent3448335a14612bc7d3d426f79e3705b2bdad26cd (diff)
downloadbrew-e94810950d7fe1f212f6c11ffcdefb6eaaaf7c01.tar.bz2
Merge pull request #3386 from MikeMcQuaid/config-homebrew-path
system_config: get perl/ruby from HOMEBREW_PATH.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/system_config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/system_config.rb b/Library/Homebrew/system_config.rb
index 3e1acd4ff..063f7f34f 100644
--- a/Library/Homebrew/system_config.rb
+++ b/Library/Homebrew/system_config.rb
@@ -73,7 +73,7 @@ class SystemConfig
end
def describe_perl
- describe_path(which("perl"))
+ describe_path(which("perl", ENV["HOMEBREW_PATH"]))
end
def describe_python
@@ -96,7 +96,7 @@ class SystemConfig
end
def describe_ruby
- ruby = which "ruby"
+ ruby = which "ruby", ENV["HOMEBREW_PATH"]
return "N/A" if ruby.nil?
ruby_binary = Utils.popen_read ruby, "-rrbconfig", "-e", \
'include RbConfig;print"#{CONFIG["bindir"]}/#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]}"'