Skip to content

Commit f8ca532

Browse files
authored
Suppress MacOS package manager output (PowerShell#21244)
1 parent c3594c5 commit f8ca532

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,9 +2214,9 @@ function Start-PSBootstrap {
22142214
}
22152215
} elseif ($environment.IsMacOS) {
22162216
if ($environment.UsingHomebrew) {
2217-
$PackageManager = "brew"
2217+
$baseCommand = "brew install --quiet"
22182218
} elseif ($environment.UsingMacports) {
2219-
$PackageManager = "$sudo port"
2219+
$baseCommand = "$sudo port -q install"
22202220
}
22212221

22222222
# wget for downloading dotnet
@@ -2227,7 +2227,7 @@ function Start-PSBootstrap {
22272227

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

0 commit comments

Comments
 (0)