diff options
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 |