Skip to content

Instantly share code, notes, and snippets.

@sgmills
Last active May 23, 2023 07:30
Embed
What would you like to do?
#!/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