aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/system_config.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-10-28 20:38:00 +0100
committerMike McQuaid2017-10-28 20:38:00 +0100
commit3448335a14612bc7d3d426f79e3705b2bdad26cd (patch)
tree530d97f4cd2e18bf0da1794e94141aa3c88ddc51 /Library/Homebrew/system_config.rb
parent7caca570736a6232512328992b398270dbbf3f4f (diff)
downloadbrew-3448335a14612bc7d3d426f79e3705b2bdad26cd.tar.bz2
system_config: get perl/ruby from HOMEBREW_PATH.
This is the actual user path when env filtering is enabled.
Diffstat (limited to 'Library/Homebrew/system_config.rb')
-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"]}"'