Fixed #1186, incorrect path was calculted when module already installed locally. (#1839)

This commit is contained in:
Martin Gill 2019-07-06 03:58:14 +02:00 committed by Carlos Zamora
parent eda6547ba3
commit 7eae91ea3c

View file

@ -41,7 +41,7 @@ function Import-LocalModule
Write-Verbose "$Name already downloaded"
$versions = Get-ChildItem "$modules_root\$Name" | Sort-Object
Get-ChildItem -Path $versions[0] "$Name.psd1" | Import-Module
Get-ChildItem -Path "$modules_root\$Name\$($versions[0])\$Name.psd1" | Import-Module
}
}