Skip to content

Commit

Permalink
Merge pull request #3386 from MikeMcQuaid/config-homebrew-path
Browse files Browse the repository at this point in the history
system_config: get perl/ruby from HOMEBREW_PATH.
  • Loading branch information
MikeMcQuaid committed Oct 29, 2017
2 parents 7caca57 + 3448335 commit e948109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/system_config.rb
Expand Up @@ -73,7 +73,7 @@ def describe_path(path)
end

def describe_perl
describe_path(which("perl"))
describe_path(which("perl", ENV["HOMEBREW_PATH"]))
end

def describe_python
Expand All @@ -96,7 +96,7 @@ def describe_python
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"]}"'
Expand Down

0 comments on commit e948109

Please sign in to comment.