Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac install should check for Rosetta mode #16

Open
garfieldnate opened this issue Nov 8, 2023 · 0 comments
Open

Mac install should check for Rosetta mode #16

garfieldnate opened this issue Nov 8, 2023 · 0 comments
Labels

Comments

@garfieldnate
Copy link
Contributor

garfieldnate commented Nov 8, 2023

Use sysctl -n sysctl.proc_translated, which returns 1 when running under Rosetta and 0 otherwise. If running under Rosetta, we should install the x86-64 binaries, not the ARM64 ones.

if [ $(sysctl -n sysctl.proc_translated) ]
then
    echo "Rosetta"
else
    echo "Not Rosetta"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant