From b5b645c921e588dcbda2811939a7b684c440268d Mon Sep 17 00:00:00 2001 From: can1357 Date: Wed, 22 Jul 2026 20:23:56 +0200 Subject: [PATCH] fix(installer): fall back to /usr/sbin/sysctl when sysctl is not on PATH --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 3ad5b8001..c3c2ac70e 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -76,7 +76,7 @@ has_bun() { # where `uname -m` reports the translated x86_64. host_arch() { if [ "$(uname -s)" = "Darwin" ]; then - if [ "$(sysctl -in hw.optional.arm64 2>/dev/null)" = "1" ]; then + if [ "$(sysctl -in hw.optional.arm64 2>/dev/null || /usr/sbin/sysctl -in hw.optional.arm64 2>/dev/null)" = "1" ]; then echo "arm64" else echo "x64"