Skip to content

Commit

Permalink
Merge pull request #347 from MikeMcQuaid/check_processor
Browse files Browse the repository at this point in the history
install.sh: check processor.
  • Loading branch information
MikeMcQuaid authored Nov 12, 2020
2 parents 9bae132 + 79d7a37 commit 5ffcdbb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,19 @@ EOABORT
)"
fi

UNAME_MACHINE="$(uname -m)"
if [[ "$UNAME_MACHINE" == "arm64" ]]; then
abort "$(cat <<EOABORT
Homebrew is not (yet) supported on ARM processors!
Rerun the Homebrew installer under Rosetta 2.
If you really know what you are doing and are prepared for a very broken experience you can use another installation option for installing on ARM:
${tty_underline}https://docs.brew.sh/Installation${tty_reset}
EOABORT
)"
elif [[ "$UNAME_MACHINE" != "x86_64" ]]; then
abort "Homebrew is only supported on Intel processors!"
fi

if [[ -z "${HOMEBREW_ON_LINUX-}" ]]; then
if version_lt "$macos_version" "10.7"; then
abort "$(cat <<EOABORT
Expand Down

0 comments on commit 5ffcdbb

Please sign in to comment.