aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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