aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-08-29 08:41:24 -0400
committerMax Howell2012-08-29 08:41:24 -0400
commit2396c57a6c951b503bd8076dd80f5722b06175b2 (patch)
treeb9cb09af2206f2dde80f7f0979956037fa459c24
parent17cfa811ca2bd22d06960bb009e11ae6251b3361 (diff)
downloadhomebrew-2396c57a6c951b503bd8076dd80f5722b06175b2.tar.bz2
Fix detecting CLT installation
-rw-r--r--install4
1 files changed, 3 insertions, 1 deletions
diff --git a/install b/install
index 647cda6a0..5d026cd09 100644
--- a/install
+++ b/install
@@ -153,7 +153,9 @@ warn "/usr/local/bin is not in your PATH." unless ENV['PATH'].split(':').include
if macos_version < 10.7
warn "Now install Xcode: https://developer.apple.com/xcode/" unless File.exist? "/usr/bin/cc"
else
- warn "Now install the \"Command Line Tools for Xcode\": http://connect.apple.com" unless File.file? "/usr/bin/xcrun"
+ `/usr/bin/cc --version 2> /dev/null` =~ %r{tags/Apple/clang-(\d+)}
+ version = $1.to_i
+ warn %{Install the "Command Line Tools for Xcode": http://connect.apple.com} if version < 421
end
ohai "Installation successful!"