Permalink
Browse files

Merge pull request #241 from calavera/skip-homebrew-install

Skip homebrew install if it's already in the path
  • Loading branch information...
2 parents a70b10d + 69b53d7 commit 940ad7010bc55e48920fb767c377d002a2abb4c3 @skwp committed Feb 4, 2013
Showing with 9 additions and 5 deletions.
  1. +9 −5 Rakefile
View
@@ -80,11 +80,15 @@ def install_rvm_binstubs
end
def install_homebrew
- puts "======================================================"
- puts "Installing Homebrew, the OSX package manager...If it's"
- puts "already installed, this will do nothing."
- puts "======================================================"
- run %{ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"}
+ run %{which brew}
+ unless $?.success?
+ puts "======================================================"
+ puts "Installing Homebrew, the OSX package manager...If it's"
+ puts "already installed, this will do nothing."
+ puts "======================================================"
+ run %{ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"}
+ end
+
puts
puts
puts "======================================================"

0 comments on commit 940ad70

Please sign in to comment.