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