fix Resolve-Dependency error for missing module
This commit is contained in:
parent
9062bd1d4f
commit
6991487a3c
@ -75,7 +75,10 @@ function Resolve-Dependency {
|
||||
foreach ($Module in $SelectedDependency.Modules) {
|
||||
$res += Test-Module -Name $Module
|
||||
}
|
||||
if ($res -contains $false) {
|
||||
if ($res.count -eq 0) {
|
||||
return $false
|
||||
}
|
||||
elseif ($res.count -contains $false) {
|
||||
return $false
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user