aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-08-29 11:29:05 -0400
committerMax Howell2012-08-29 11:29:05 -0400
commit9615b760a4ac60d0dd909899339bdf6a4e77efee (patch)
tree0e8ffa090764e1806919894147521a4156b610bd
parentff9a35d980dd80f93883344a7cb278eeee5175f6 (diff)
downloadhomebrew-9615b760a4ac60d0dd909899339bdf6a4e77efee.tar.bz2
Fix xcrun usage
Fixes #14511.
-rw-r--r--install5
1 files changed, 3 insertions, 2 deletions
diff --git a/install b/install
index 8ad534fc6..a62e730da 100644
--- a/install
+++ b/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