From 99a0bc3a6349453db5bb5aced9bef50627d2ea9d Mon Sep 17 00:00:00 2001 From: RiskyMH Date: Thu, 5 Jun 2025 15:09:32 +1000 Subject: [PATCH] fix #3720 --- src/cli/install.ps1 | 2 +- src/cli/install.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/install.ps1 b/src/cli/install.ps1 index 39c49ac348..4e0e11a565 100644 --- a/src/cli/install.ps1 +++ b/src/cli/install.ps1 @@ -260,7 +260,7 @@ function Install-Bun { $C_RESET = [char]27 + "[0m" $C_GREEN = [char]27 + "[1;32m" - Write-Output "${C_GREEN}Bun ${DisplayVersion} was installed successfully!${C_RESET}" + Write-Output "${C_GREEN}Bun v${DisplayVersion} was installed successfully!${C_RESET}" Write-Output "The binary is located at ${BunBin}\bun.exe`n" $hasExistingOther = $false; diff --git a/src/cli/install.sh b/src/cli/install.sh index f32e073258..19959705f0 100644 --- a/src/cli/install.sh +++ b/src/cli/install.sh @@ -164,7 +164,8 @@ tildify() { fi } -success "bun was installed successfully to $Bold_Green$(tildify "$exe")" +bun_version=$("$exe" --version 2>/dev/null || echo "unknown") +success "Bun v${bun_version} was installed successfully to $Bold_Green$(tildify "$exe")" if command -v bun >/dev/null; then # Install completions, but we don't care if it fails