Install homebrew only if it's not in the path already.
This commit is contained in:
parent
b02b77c423
commit
721836976c
16
Rakefile
16
Rakefile
@ -8,7 +8,7 @@ task :install => [:submodule_init, :submodules] do
|
|||||||
puts "======================================================"
|
puts "======================================================"
|
||||||
puts
|
puts
|
||||||
|
|
||||||
#install_homebrew if RUBY_PLATFORM.downcase.include?("darwin")
|
install_homebrew if RUBY_PLATFORM.downcase.include?("darwin")
|
||||||
install_rvm_binstubs
|
install_rvm_binstubs
|
||||||
|
|
||||||
# this has all the runcoms from this directory.
|
# this has all the runcoms from this directory.
|
||||||
@ -79,11 +79,15 @@ def install_rvm_binstubs
|
|||||||
end
|
end
|
||||||
|
|
||||||
def install_homebrew
|
def install_homebrew
|
||||||
puts "======================================================"
|
brew_path = run("which brew")
|
||||||
puts "Installing Homebrew, the OSX package manager...If it's"
|
unless $?.success?
|
||||||
puts "already installed, this will do nothing."
|
puts "======================================================"
|
||||||
puts "======================================================"
|
puts "Installing Homebrew, the OSX package manager...If it's"
|
||||||
run %{ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"}
|
puts "already installed, this will do nothing."
|
||||||
|
puts "======================================================"
|
||||||
|
run %{ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"}
|
||||||
|
end
|
||||||
|
|
||||||
puts
|
puts
|
||||||
puts
|
puts
|
||||||
puts "======================================================"
|
puts "======================================================"
|
||||||
|
Loading…
Reference in New Issue
Block a user