diff options
| author | Jack Nagel | 2014-04-21 18:52:12 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-21 18:52:12 -0500 |
| commit | 75738557561ac5168bb2d07e8406f3bb9cced7bb (patch) | |
| tree | 8d030b15b9ccab39d4b410c609eebbe579606451 | |
| parent | 24e27465e0df05ca53c9f4223bc94e66f126c117 (diff) | |
| download | brew-75738557561ac5168bb2d07e8406f3bb9cced7bb.tar.bz2 | |
Only check Xcode prefix when non-nil
| -rw-r--r-- | Library/Homebrew/os/mac.rb | 2 |
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 |
