Skip to content

Instantly share code, notes, and snippets.

Last active May 23, 2023 07:30
What would you like to do?
# If cpu is Apple branded, install Rosetta 2
if [[ "$(sysctl -n machdep.cpu.brand_string)" == *'Apple'* ]]; then
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment