File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1717main () {
1818 set -o errexit
1919
20- if [ " $1 " == " -y" ]
21- then
20+ if [ " $1 " == " -y" ]
21+ then
2222 install
2323 else
2424 echo " PACKAGES WILL BE INSTALLED. THIS MAY BREAK YOUR EXISTING TOOLCHAIN."
2525 echo " YOU ACCEPT ALL RESPONSIBILITY BY PROCEEDING."
2626 read -p " Proceed? [Y/n] : " yn
27-
27+
2828 case $yn in
2929 Y|y) install;;
3030 * ) ;;
@@ -71,7 +71,9 @@ install_mac() {
7171 # Install Homebrew.
7272 if test ! $( which brew) ; then
7373 echo " Installing Homebrew (https://brew.sh/)"
74- ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) "
74+ /bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) "
75+ echo ' eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~ /.zprofile
76+ eval " $( /opt/homebrew/bin/brew shellenv) "
7577 fi
7678 # Update Homebrew.
7779 brew update
You can’t perform that action at this time.
0 commit comments