Skip to content

Instantly share code, notes, and snippets.

@sgmills
Last active May 23, 2023 07:30
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sgmills/71fc1aa3c91f236c7967f6e9a336cf19 to your computer and use it in GitHub Desktop.
#!/bin/sh
# 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
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment