Browse files

Fix xcrun usage

Fixes #14511.
  • Loading branch information...
1 parent ff9a35d commit 9615b760a4ac60d0dd909899339bdf6a4e77efee @mxcl mxcl committed Aug 29, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 install
View
5 install
@@ -62,8 +62,9 @@ def git
ENV['GIT']
elsif Kernel.system '/usr/bin/which -s git'
'git'
- elsif Kernel.system 'xcrun -find git 2>&1 >/dev/null'
- %w[xcrun git]
+ else
+ s = `xcrun -find git 2>/dev/null`.chomp
+ s if $? and not s.empty?
end
end

0 comments on commit 9615b76

Please sign in to comment.