Skip to content

Instantly share code, notes, and snippets.

@renyuzhuo
Created July 16, 2020 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renyuzhuo/4fa5051fc96d41efd69d220e67763d44 to your computer and use it in GitHub Desktop.
Save renyuzhuo/4fa5051fc96d41efd69d220e67763d44 to your computer and use it in GitHub Desktop.
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)"'
@renyuzhuo
Copy link
Author

renyuzhuo commented Jul 16, 2020

解决 brew 安装失败依赖问题,失败时,会下载源代码安装。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment