aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-21 18:52:12 -0500
committerJack Nagel2014-04-21 18:52:12 -0500
commit30690dde1102f384ce60e5a42b2b43dd8fe81e57 (patch)
tree2656d6a005792b7e99135a520d41d0cc14c4430e /Library
parente0e4e44c591a4e4960760e46d5be74fc785a71b3 (diff)
downloadhomebrew-30690dde1102f384ce60e5a42b2b43dd8fe81e57.tar.bz2
Only check Xcode prefix when non-nil
Diffstat (limited to 'Library')
-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 ff7fd0c0a..64b0878ef 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -61,7 +61,7 @@ module OS
Pathname.new "/usr/bin"
elsif not (make_path = `/usr/bin/xcrun -find make 2>/dev/null`).empty?
Pathname.new(make_path.chomp).dirname
- elsif File.exist? "#{Xcode.prefix}/usr/bin/make"
+ elsif Xcode.prefix && File.exist?("#{Xcode.prefix}/usr/bin/make")
Pathname.new "#{Xcode.prefix}/usr/bin"
end
end