From 75738557561ac5168bb2d07e8406f3bb9cced7bb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 21 Apr 2014 18:52:12 -0500 Subject: Only check Xcode prefix when non-nil --- Library/Homebrew/os/mac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3