diff options
| author | Jack Nagel | 2014-04-30 15:04:02 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-30 15:04:41 -0500 |
| commit | 5c05504a66d9d6d1f90729728b1a4d2f9486b3c2 (patch) | |
| tree | fafff9dc634c07085ea98a556582f74be43ae9c8 | |
| parent | 0f09260c76797048be806b88e88135d6448d5afb (diff) | |
| download | homebrew-5c05504a66d9d6d1f90729728b1a4d2f9486b3c2.tar.bz2 | |
Validate the output of xcrun more thoroughly
Noticed when installing Homebrew on a fresh install of 10.7 printed
this:
-e:204: command not found: Error: /usr/bin/xcode-select returned unexpected error. --version
| -rwxr-xr-x | install | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -80,8 +80,8 @@ def git elsif Kernel.system '/usr/bin/which -s git' 'git' else - s = `xcrun -find git 2>/dev/null`.chomp - s if $? and not s.empty? + exe = `xcrun -find git 2>/dev/null`.chomp + exe if $? && $?.success? && !exe.empty? && File.executable?(exe) end return unless @git |
