Skip to content

Commit

Permalink
Fix third party signing for files in sub-folders (PowerShell#14751)
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisEz13 authored and adityapatwardhan committed Feb 10, 2021
1 parent 70f68e9 commit 9b0071e
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -178,7 +178,14 @@ jobs:
$null = New-Item -ItemType Directory -Path $signedFilesDirectory -Force
$missingSignatures | ForEach-Object {
Copy-Item -Path $_ -Destination $filesToSignDirectory
$pathWithoutLeaf = Split-Path $_
$relativePath = $pathWithoutLeaf.replace($BuildPath,'')
$targetDirectory = Join-Path -Path $filesToSignDirectory -ChildPath $relativePath
if(!(Test-Path $targetDirectory))
{
$null = New-Item -ItemType Directory -Path $targetDirectory -Force
}
Copy-Item -Path $_ -Destination $targetDirectory
}
displayName: Create ThirdParty Signing Folder
Expand Down

0 comments on commit 9b0071e

Please sign in to comment.