diff --git a/PSModules/Cloud.Ready.Software.NAV/Get-NAVModuleVersions.ps1 b/PSModules/Cloud.Ready.Software.NAV/Get-NAVModuleVersions.ps1 index 357a7f1..4edf9f1 100644 --- a/PSModules/Cloud.Ready.Software.NAV/Get-NAVModuleVersions.ps1 +++ b/PSModules/Cloud.Ready.Software.NAV/Get-NAVModuleVersions.ps1 @@ -41,6 +41,8 @@ function Get-NAVModuleVersions { ) } + $searchIn = $searchIn | Where-Object { Test-Path $_ } + foreach ($searchPath in $searchIn) { Write-Verbose "Searching in $searchPath, please wait a second..."