We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sysctl: unknown oid 'hw.optional.arm64'
1 parent 4dfe254 commit bbecd2dCopy full SHA for bbecd2d
rustup-init.sh
@@ -265,7 +265,8 @@ get_architecture() {
265
_cputype=x86_64
266
fi
267
elif [ "$_cputype" = x86_64 ]; then
268
- if sysctl hw.optional.arm64 | grep -q ': 1'; then
+ # Avoid `sysctl: unknown oid 'hw.optional.arm64'` stderr output on Intel Macs.
269
+ if sysctl hw.optional.arm64 2> /dev/null | grep -q ': 1'; then
270
_cputype=arm64
271
272
0 commit comments