Skip to content

Instantly share code, notes, and snippets.

@renyuzhuo
renyuzhuo / brew_install.rb
Created July 16, 2020 01:21
brew_install.rb
#!/usr/bin/ruby
STDERR.print <<EOS
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
EOS
Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'