This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix detecting CLT installation

  • Loading branch information...
1 parent 17cfa81 commit 2396c57a6c951b503bd8076dd80f5722b06175b2 @mxcl mxcl committed Aug 29, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 install
View
@@ -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!"

0 comments on commit 2396c57

Please sign in to comment.