Skip to content

Instantly share code, notes, and snippets.

@sgmills
Last active May 23, 2023 07:30
Show Gist options
  • Save sgmills/71fc1aa3c91f236c7967f6e9a336cf19 to your computer and use it in GitHub Desktop.
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