fix Resolve-Dependency error for missing module

This commit is contained in:
OCram85 2018-03-09 09:31:43 +01:00
parent 9062bd1d4f
commit 6991487a3c

View File

@ -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 {