Skip to content

Commit

Permalink
Suppress MacOS package manager output (#21244)
Browse files Browse the repository at this point in the history
  • Loading branch information
xtqqczze committed Feb 27, 2024
1 parent c3594c5 commit f8ca532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2214,9 +2214,9 @@ function Start-PSBootstrap {
}
} elseif ($environment.IsMacOS) {
if ($environment.UsingHomebrew) {
$PackageManager = "brew"
$baseCommand = "brew install --quiet"
} elseif ($environment.UsingMacports) {
$PackageManager = "$sudo port"
$baseCommand = "$sudo port -q install"
}

# wget for downloading dotnet
Expand All @@ -2227,7 +2227,7 @@ function Start-PSBootstrap {

# Install dependencies
# ignore exitcode, because they may be already installed
Start-NativeExecution ([ScriptBlock]::Create("$PackageManager install $Deps")) -IgnoreExitcode
Start-NativeExecution ([ScriptBlock]::Create("$baseCommand $Deps")) -IgnoreExitcode
} elseif ($environment.IsLinux -and $environment.IsAlpine) {
$Deps += 'libunwind', 'libcurl', 'bash', 'build-base', 'git', 'curl', 'wget'

Expand Down

0 comments on commit f8ca532

Please sign in to comment.