diff options
author | 2021-11-03 15:25:38 -0700 | |
---|---|---|
committer | 2021-11-03 15:25:38 -0700 | |
commit | 2018f5020aed03fdc98eafad0f047797e92f7979 (patch) | |
tree | b5bc193494e21118aca379de33370cb1b79a8a30 /src | |
parent | 92a7849e98577e3722821e3c02210e10ce61df58 (diff) | |
download | bun-2018f5020aed03fdc98eafad0f047797e92f7979.tar.gz bun-2018f5020aed03fdc98eafad0f047797e92f7979.tar.zst bun-2018f5020aed03fdc98eafad0f047797e92f7979.zip |
[installer] Detect rosetta in install.sh
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/install.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cli/install.sh b/src/cli/install.sh index 80721963b..bed062dfc 100644 --- a/src/cli/install.sh +++ b/src/cli/install.sh @@ -45,6 +45,14 @@ else esac fi +if [ "$target" = "darwin-x64" ]; then + # Is it rosetta + sysctl sysctl.proc_translated >/dev/null 2>&1 + if [ $? -eq 0 ]; then + target="darwin-aarch64" + fi +fi + github_repo="https://github.com/Jarred-Sumner/bun-releases-for-updater" if [ $# -eq 0 ]; then |