aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMisty De Meo2013-04-20 23:03:47 -0500
committerMisty De Meo2013-04-25 18:23:43 -0500
commit9b4310b362e299f288510e2dec1ace1cc0cf4c05 (patch)
treed56eba9f4aa73b8790751ecdb83c53a361ec03e9 /Library/Homebrew/cmd
parent2b34a9c612c7f928fdeb13ac90ada2becd26a1c1 (diff)
downloadhomebrew-9b4310b362e299f288510e2dec1ace1cc0cf4c05.tar.bz2
doctor: don't shell out in coreutils check
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 3f94b678d..260a8c2af 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -952,7 +952,7 @@ def check_for_bad_python_symlink
end
def check_for_non_prefixed_coreutils
- gnubin = `brew --prefix coreutils`.chomp + "/libexec/gnubin"
+ gnubin = Formula.factory('coreutils').prefix.to_s + "/libexec/gnubin"
if paths.include? gnubin then <<-EOS.undent
Putting non-prefixed coreutils in your path can cause gmp builds to fail.
EOS