aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-04-21 22:39:44 -0500
committerJack Nagel2014-04-21 22:47:15 -0500
commitdbb527f352f2aaa248927c7a3abefe8bc1cda97a (patch)
treeacac755488e07191499785a5c772fc813d7a9048 /Library/Homebrew
parentbe66d746add559161b609106d06317fd25522b58 (diff)
downloadbrew-dbb527f352f2aaa248927c7a3abefe8bc1cda97a.tar.bz2
The argument to MacOS.locate is always a string
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/os/mac.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 64b0878ef..a64329484 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -23,7 +23,7 @@ module OS
# Don't call tools (cc, make, strip, etc.) directly!
# Give the name of the binary you look for as a string to this method
# in order to get the full path back as a Pathname.
- (@locate ||= {}).fetch(tool.to_s) do |key|
+ (@locate ||= {}).fetch(tool) do |key|
@locate[key] = if File.executable?(path = "/usr/bin/#{tool}")
Pathname.new path
# Homebrew GCCs most frequently; much faster to check this before xcrun