Merge pull request #319 from mistydemeo/fix_apple_silicon_detection

Install: fix Apple Silicon detection under Rosetta
This commit is contained in:
Misty De Meo
2020-07-10 15:23:07 -07:00
committed by GitHub

View File

@@ -7,7 +7,7 @@ if [[ "$(uname)" = "Linux" ]]; then
fi
# Check if macOS is ARM
if [[ "$(uname -m)" = "arm64" ]] && [[ "$(uname)" = "Darwin" ]]; then
if [[ "$(uname)" = "Darwin" ]] && [[ "$(sysctl -n hw.optional.arm64 2>/dev/null || echo '0')" = "1" ]]; then
HOMEBREW_APPLE_SILICON=1
fi