From f4cf04b95e95beb87d8074820567ecec6dd571bd Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sat, 20 Apr 2013 23:03:47 -0500 Subject: [PATCH] doctor: don't shell out in coreutils check --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 3f94b678dc..260a8c2aff 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