Skip to content

Commit

Permalink
Fix Homebrew setup
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 20, 2024
1 parent b78be45 commit 5fb89c1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,22 @@ install() {
mise use -g -y erlang@$erlang_version
;;
"Homebrew")
$SHELL -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
UNAME_MACHINE="$(/usr/bin/uname -m)"

if [[ "${UNAME_MACHINE}" == "arm64" ]]; then
(
echo
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"'
) >>$config_file
eval "$(/opt/homebrew/bin/brew shellenv)"
else
(
echo
echo 'eval "$(/usr/local/bin/brew shellenv)"'
) >>$config_file
eval "$(/usr/local/bin/brew shellenv)"
fi
;;
"mise")
curl https://mise.run | sh
Expand Down

0 comments on commit 5fb89c1

Please sign in to comment.