Fix syntax error in Windows packaging script (#14377)

# Conflicts:
#	tools/releaseBuild/azureDevOps/templates/windows-packaging.yml
This commit is contained in:
Robert Holt 2020-12-10 13:07:53 -08:00 committed by Travis Plunk
parent 54ff9c67d9
commit 88478d66e6
No known key found for this signature in database
GPG key ID: 3E3A55CE95A79E47

View file

@ -124,13 +124,16 @@ jobs:
"$($fullSymbolsFolder)\System.Management.Automation.dll" = ""
}
$itemsToExclude = @(
)
if ("$env:Architecture" -notlike 'fxdependent*')
{
$itemsToCopy += @{"$($fullSymbolsFolder)\pwsh.exe" = ""}
}
Write-Verbose -verbose "recusively copying $($itemsToCopyWithRecurse | out-string) to $filesToSignDirectory"
Copy-Item -Path $itemsToCopyWithRecurse -Destination $filesToSignDirectory -Recurse -verbose
Copy-Item -Path $itemsToCopyWithRecurse -Destination $filesToSignDirectory -Recurse -verbose -exclude $itemsToExclude
foreach($pattern in $itemsToCopy.Keys) {
$destinationFolder = Join-Path $filesToSignDirectory -ChildPath $itemsToCopy.$pattern