mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merge pull request #1378 from PowerShell/psget
Ignoring the errors from Receive-Job cmdlet in Uninstall-module logic…
This commit is contained in:
@@ -10982,7 +10982,7 @@ function Uninstall-Package
|
||||
}
|
||||
$dependentModulesJob = Microsoft.PowerShell.Core\Start-Job -ScriptBlock $dependentModuleScript -ArgumentList $moduleName
|
||||
Microsoft.PowerShell.Core\Wait-Job -job $dependentModulesJob
|
||||
$dependentModules = Microsoft.PowerShell.Core\Receive-Job -job $dependentModulesJob
|
||||
$dependentModules = Microsoft.PowerShell.Core\Receive-Job -job $dependentModulesJob -ErrorAction Ignore
|
||||
|
||||
if(-not $Force -and $dependentModules)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user