mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Ignoring the errors from Receive-Job cmdlet in Uninstall-module logic, this is a workaround for #1365
This commit is contained in:
1 parent
34e6240188
commit
6a1ad57e42
1 file changed
+1
-1
@@ -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