Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bun
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ if [ ! -f "$bunCmd" ]; then
if [ "$version" != "latest" ]; then
bashArgs=(-s "$version")
fi
curl -fsSL https://bun.sh/install | BUN_INSTALL="$downloadDir" bash "${bashArgs[@]}"
# Override SHELL so the installer's `case $(basename "$SHELL")` falls through
# to its default branch, which only prints manual instructions instead of
# appending BUN_INSTALL/PATH exports to ~/.bashrc (or .zshrc / config.fish).
# We invoke bun via its explicit path, so we don't need those PATH edits.
curl -fsSL https://bun.sh/install | SHELL="" BUN_INSTALL="$downloadDir" bash "${bashArgs[@]}"
fi
exec "$bunCmd" "$@"