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 {
51
51
$typespecFolders = @ ()
52
52
foreach ($file in $changedFiles ) {
53
53
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
+ }
56
60
}
57
61
}
58
62
You can’t perform that action at this time.
0 commit comments