File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,7 +126,16 @@ Get-ChildItem -Path (Join-Path $sourcesDir "Build") "*.nuspec" `
126126$BinFolder = Join-Path $Env: BinariesDirectory " bin\${Env: BuildName} "
127127$BinDropPath = Join-Path $destinationBase " bin"
128128Write-Output " Copying `" $BinFolder `" to `" $BinDropPath `" ..."
129- Copy-Item - Verbose $BinFolder $BinDropPath - Recurse - Force - Exclude " *_ttdlog*"
129+ md $BinDropPath
130+ Get-ChildItem - Path $BinFolder - Recurse |
131+ where {$_.FullName -notmatch " .*_ttdlog.*" } |
132+ Copy-Item - Verbose - Force - Destination {
133+ if ($_.PSIsContainer ) {
134+ Join-Path $BinDropPath $_.Parent.FullName.Substring ($BinFolder.length )
135+ } else {
136+ Join-Path $BinDropPath $_.FullName.Substring ($BinFolder.length )
137+ }
138+ }
130139
131140#
132141# Copy POGO directory if present for this build
You can’t perform that action at this time.
0 commit comments