From 97b5808cac7940f35eaaa5f9a66fcb5a6795e1d4 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 28 May 2010 00:54:53 +0100 Subject: Warn if Xcode is not installed. --- install_homebrew.rb | 10 ++-------- 1 file 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" -- cgit v1.2.3