aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2010-05-28 00:54:53 +0100
committerMax Howell2012-03-09 12:08:52 +0000
commit97b5808cac7940f35eaaa5f9a66fcb5a6795e1d4 (patch)
tree212e223b89774f84d9aeb84096b57c13800d66ec
parent4c0545619d3aaa91f78e00a0d13e662a078a6543 (diff)
downloadbrew-97b5808cac7940f35eaaa5f9a66fcb5a6795e1d4.tar.bz2
Warn if Xcode is not installed.
-rw-r--r--install_homebrew.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/install_homebrew.rb b/install_homebrew.rb
index 6edfb4067..6dcd4113e 100644
--- a/install_homebrew.rb
+++ b/install_homebrew.rb
@@ -131,11 +131,5 @@ end
ohai "Installation successful!"
-if ENV['PATH'].split(':').include? '/usr/local/bin'
- puts "Yay! Now learn to brew:"
- puts
- puts " brew help"
- puts
-else
- warn "/usr/local/bin is not in your PATH"
-end
+warn "/usr/local/bin is not in your PATH." unless ENV['PATH'].split(':').include? '/usr/local/bin'
+warn "Now install Xcode." unless system "/usr/bin/which gcc"