Last active
May 23, 2023 07:30
-
-
Save sgmills/71fc1aa3c91f236c7967f6e9a336cf19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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