This commit is contained in:
RiskyMH
2025-06-05 15:09:32 +10:00
parent 817d0464f6
commit 99a0bc3a63
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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