diff options
author | 2022-08-05 16:36:25 -0700 | |
---|---|---|
committer | 2022-08-05 16:36:25 -0700 | |
commit | e34190fe66f820d0b191ccd16c03c6306a057073 (patch) | |
tree | 20376ce6e75cd144f83f640d6b9a46d21d23db71 /src/cli/install.sh | |
parent | 7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61 (diff) | |
download | bun-e34190fe66f820d0b191ccd16c03c6306a057073.tar.gz bun-e34190fe66f820d0b191ccd16c03c6306a057073.tar.zst bun-e34190fe66f820d0b191ccd16c03c6306a057073.zip |
Fix error message in install script
Diffstat (limited to '')
-rw-r--r-- | src/cli/install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli/install.sh b/src/cli/install.sh index c8a6be426..60529129f 100644 --- a/src/cli/install.sh +++ b/src/cli/install.sh @@ -73,7 +73,8 @@ esac if [[ $target = darwin-x64 ]]; then # Is this process running in Rosetta? - if [[ $(sysctl -n sysctl.proc_translated) = 1 ]]; then + # redirect stderr to devnull to avoid error message when not running in Rosetta + if [[ $(sysctl -n sysctl.proc_translated 2>/dev/null) = 1 ]]; then target=darwin-aarch64 info "Your shell is running in Rosetta 2. Downloading bun for $target instead" fi |