Skip to content

Commit c4dff4c

Browse files
committed
fix(build): migrate Ruby Homebrew Install to Bash
1 parent fe87554 commit c4dff4c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build_support/packages.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
main() {
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

0 commit comments

Comments
 (0)