File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ get_architecture() {
348
348
# See: <https://support.apple.com/en-us/HT208436>
349
349
350
350
# Avoid `sysctl: unknown oid` stderr output and/or non-zero exit code.
351
- if sysctl hw.optional.x86_64 2> /dev/null || true | grep -q ' : 1' ; then
351
+ if ( sysctl hw.optional.x86_64 2> /dev/null || true) | grep -q ' : 1' ; then
352
352
_cputype=x86_64
353
353
fi
354
354
elif [ " $_cputype " = x86_64 ]; then
@@ -357,7 +357,7 @@ get_architecture() {
357
357
# Rosetta 2 is built exclusively for x86-64 and cannot run i386 binaries.
358
358
359
359
# Avoid `sysctl: unknown oid` stderr output and/or non-zero exit code.
360
- if sysctl hw.optional.arm64 2> /dev/null || true | grep -q ' : 1' ; then
360
+ if ( sysctl hw.optional.arm64 2> /dev/null || true) | grep -q ' : 1' ; then
361
361
_cputype=arm64
362
362
fi
363
363
fi
You can’t perform that action at this time.
0 commit comments