Use com.apple.oahd.plist for rosetta 2 detection

This commit is contained in:
Matthew Bauer 2020-12-04 13:28:09 -06:00
parent addf9f4ede
commit 692549c542

View file

@ -47,7 +47,7 @@ case "$(uname -s).$(uname -m)" in
;;
Darwin.arm64|Darwin.aarch64)
# check for Rosetta 2 support
if ! [ -d /Library/Apple/usr/libexec/oah ]; then
if ! [ -f /Library/Apple/System/Library/LaunchDaemons/com.apple.oahd.plist ]; then
oops "Rosetta 2 is not installed on this ARM64 macOS machine. Run softwareupdate --install-rosetta then restart installation"
fi