forked from lix-project/lix
Use com.apple.oahd.plist for rosetta 2 detection
This commit is contained in:
parent
addf9f4ede
commit
692549c542
|
@ -47,7 +47,7 @@ case "$(uname -s).$(uname -m)" in
|
||||||
;;
|
;;
|
||||||
Darwin.arm64|Darwin.aarch64)
|
Darwin.arm64|Darwin.aarch64)
|
||||||
# check for Rosetta 2 support
|
# 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"
|
oops "Rosetta 2 is not installed on this ARM64 macOS machine. Run softwareupdate --install-rosetta then restart installation"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue