Skip to content

Commit b6f52f0

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
add ignore to test-path
1 parent 72fc9c0 commit b6f52f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adapters/powershell/psDscAdapter/psDscAdapter.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Get-DSCResourceModules {
1212
$listPSModuleFolders = $env:PSModulePath.Split([IO.Path]::PathSeparator)
1313
$dscModulePsd1List = [System.Collections.Generic.HashSet[System.String]]::new()
1414
foreach ($folder in $listPSModuleFolders) {
15-
if (!(Test-Path $folder)) {
15+
if (!(Test-Path $folder -ErrorAction Ignore)) {
1616
continue
1717
}
1818

0 commit comments

Comments
 (0)