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 @@ -346,7 +346,9 @@ function Copy-1PFilesToSign
346346 Copy-Item - Path $file.FullName - Destination $TargetRoot
347347 } else {
348348 $targetParent = $parent.Replace ($SourceRoot , $TargetRoot )
349- $null = mkdir - Path $targetParent
349+ if (-not (Test-Path $targetParent )) {
350+ $null = mkdir - Path $targetParent
351+ }
350352 Copy-Item - Path $file.FullName - Destination $targetParent
351353 }
352354 }
@@ -389,7 +391,9 @@ function Copy-3PFilesToSign
389391 Copy-Item - Path $file.FullName - Destination $TargetRoot
390392 } else {
391393 $targetParent = $parent.Replace ($SourceRoot , $TargetRoot )
392- $null = mkdir - Path $targetParent
394+ if (-not (Test-Path $targetParent )) {
395+ $null = mkdir - Path $targetParent
396+ }
393397 Copy-Item - Path $file.FullName - Destination $targetParent
394398 }
395399 }
You can’t perform that action at this time.
0 commit comments