From 29af53d451e128b690a63bb6774441fe3dd2998b Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 21 Mar 2013 08:17:26 -0500 Subject: Replace remaining shelled-out `which`es --- Library/Homebrew/extend/ENV.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/extend') diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 186628f5b..0f93a5d6f 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -479,10 +479,10 @@ class << ENV EOS end - elsif `/usr/bin/which gfortran`.chuzzle + elsif which 'gfortran' ohai "Using Homebrew-provided fortran compiler." puts "This may be changed by setting the FC environment variable." - self['FC'] = `/usr/bin/which gfortran`.chomp + self['FC'] = which 'gfortran' self['F77'] = self['FC'] fc_flag_vars.each {|key| self[key] = cflags} -- cgit v1.2.3