aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2015-09-10 15:44:46 +0800
committerXu Cheng2015-09-10 15:44:46 +0800
commit0357673f213046b3bd29109be2e14c978e2aca3d (patch)
tree061c33383abaf597253688705f502ac055c33572 /Library/Homebrew
parent43ba72fb5768427b78d1a044488c5fce1539c419 (diff)
downloadbrew-0357673f213046b3bd29109be2e14c978e2aca3d.tar.bz2
config: fix ruby path for ruby 1.8
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/config.rb b/Library/Homebrew/cmd/config.rb
index 855cb515c..fb8395135 100644
--- a/Library/Homebrew/cmd/config.rb
+++ b/Library/Homebrew/cmd/config.rb
@@ -87,7 +87,7 @@ module Homebrew
def describe_ruby
ruby = which "ruby"
return "N/A" if ruby.nil?
- ruby_binary = Utils.popen_read ruby, "-e", \
+ ruby_binary = Utils.popen_read ruby, "-rrbconfig", "-e", \
'include RbConfig;print"#{CONFIG["bindir"]}/#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]}"'
ruby_binary = Pathname.new(ruby_binary).realpath
if ruby == ruby_binary