fix Connect-To bug #41

Merged
OCram85 merged 5 commits from dev into master 2019-03-15 12:49:44 +01:00
Showing only changes of commit b50c3b5840 - Show all commits

View File

@ -70,6 +70,11 @@ function Resolve-Dependency {
process {
$SelectedDependency = $Dependency.Optional | Where-Object {$_.Name -match $Name}
# return true if there is no dependency defined
if ($null -eq $SelectedDependency) {
return $true
}
$res = @()
foreach ($Module in $SelectedDependency.Modules) {
$res += Test-Module -Name $Module