Skip to content

Commit

Permalink
Merge pull request skwp#241 from calavera/skip-homebrew-install
Browse files Browse the repository at this point in the history
Skip homebrew install if it's already in the path
  • Loading branch information
skwp committed Feb 4, 2013
2 parents a70b10d + 69b53d7 commit 940ad70
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 "======================================================"
Expand Down

0 comments on commit 940ad70

Please sign in to comment.