[macOS] Fix launcher code in case with 'sysctl.proc_translated' returning empty (#1598)

This commit is contained in:
amekusa 2022-09-26 20:12:45 +00:00 committed by GitHub
parent cf881d7d25
commit ac1a87730e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ done
arch_name="$(uname -m)"
launch_arch="arm64"
if [ "${arch_name}" = "x86_64" ] && [ "$(sysctl -in sysctl.proc_translated)" = "0" ]; then
if [ "${arch_name}" = "x86_64" ] && [ "$(sysctl -in sysctl.proc_translated)" != "1" ]; then
launch_arch="x86_64"
fi