File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,12 @@ else {
5151$typespecFolders = @ ()
5252foreach ($file in $changedFiles ) {
5353 if ($file -match ' specification\/[^\/]*\/' ) {
54- $typespecFolder = (Get-ChildItem - path $matches [0 ] tspconfig.* - Recurse).Directory.FullName | ForEach-Object {if ($_ ) { [IO.Path ]::GetRelativePath($ ($pwd.path ), $_ ) }}
55- $typespecFolders += $typespecFolder -replace ' \\' , ' /'
54+ if (Test-Path $matches [0 ]) {
55+ $typespecFolder = (Get-ChildItem - path $matches [0 ] tspconfig.* - Recurse).Directory.FullName | ForEach-Object {if ($_ ) { [IO.Path ]::GetRelativePath($ ($pwd.path ), $_ ) }}
56+ $typespecFolders += $typespecFolder -replace ' \\' , ' /'
57+ } else {
58+ Write-Host " Cannot find directory $ ( $matches [0 ]) "
59+ }
5660 }
5761}
5862
You can’t perform that action at this time.
0 commit comments