aboutsummaryrefslogtreecommitdiff
path: root/src/cli/install.sh
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-08-05 16:30:36 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-08-05 16:30:51 -0700
commit7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61 (patch)
treea8f018d81259fbfa8296ca13932a62af71de0aa6 /src/cli/install.sh
parent35a6946b632436aa86f8494c1f08322b07abba67 (diff)
downloadbun-7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61.tar.gz
bun-7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61.tar.zst
bun-7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61.zip
Fix baseline detection for macOS x64
Diffstat (limited to '')
-rw-r--r--src/cli/install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/install.sh b/src/cli/install.sh
index 9218c51ad..c8a6be426 100644
--- a/src/cli/install.sh
+++ b/src/cli/install.sh
@@ -83,7 +83,7 @@ github_repo="https://github.com/oven-sh/bun"
if [[ $target = darwin-x64 ]]; then
# If AVX2 isn't supported, use the -baseline build
- if [[ $(sysctl -n machdep.cpu.features) != *avx2* ]]; then
+ if [[ $(sysctl -a | grep machdep.cpu | grep AVX2) == '' ]]; then
target=darwin-x64-baseline
fi
fi