mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 01:34:19 +08:00
Suppress MacOS package manager output (#21244)
This commit is contained in:
parent
c3594c5969
commit
f8ca532dd7
@ -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
|
||||
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user