aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMisty De Meo2013-03-21 08:17:26 -0500
committerMisty De Meo2013-03-21 08:37:51 -0500
commit29af53d451e128b690a63bb6774441fe3dd2998b (patch)
tree8fa53943ad88d221358a77142d67264a67149dc3 /Library/Homebrew/extend
parent8a33564cab618581ee655972fc5f58fb5a3fd8f2 (diff)
downloadbrew-29af53d451e128b690a63bb6774441fe3dd2998b.tar.bz2
Replace remaining shelled-out `which`es
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb4
1 files changed, 2 insertions, 2 deletions
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}