mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
fix #3720
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user