File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 17
17
main () {
18
18
set -o errexit
19
19
20
- if [ " $1 " == " -y" ]
21
- then
20
+ if [ " $1 " == " -y" ]
21
+ then
22
22
install
23
23
else
24
24
echo " PACKAGES WILL BE INSTALLED. THIS MAY BREAK YOUR EXISTING TOOLCHAIN."
25
25
echo " YOU ACCEPT ALL RESPONSIBILITY BY PROCEEDING."
26
26
read -p " Proceed? [Y/n] : " yn
27
-
27
+
28
28
case $yn in
29
29
Y|y) install;;
30
30
* ) ;;
@@ -71,7 +71,9 @@ install_mac() {
71
71
# Install Homebrew.
72
72
if test ! $( which brew) ; then
73
73
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) "
75
77
fi
76
78
# Update Homebrew.
77
79
brew update
You can’t perform that action at this time.
0 commit comments