adds -Force flag to Copy-Item

This commit is contained in:
Andrew Welker
2020-03-20 09:44:37 -06:00
parent 5e826f4b73
commit 5029f27bc9
3 changed files with 10 additions and 3 deletions

7
.github/.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#59014E",
"titleBar.activeBackground": "#7C016D",
"titleBar.activeForeground": "#FFF8FE"
}
}

View File

@@ -23,10 +23,10 @@ Get-ChildItem -recurse -Path "$($Env:GITHUB_WORKSPACE)\*" -include "*.clz", "*.c
Write-Host "allowing $($_)"
$_;
}
} | Copy-Item -Destination ($destination)
} | Copy-Item -Destination ($destination) -Force
Write-Host "Getting matching files..."
# Get any files from the output folder that match the following extensions
Get-ChildItem -Path $destination | Where-Object {($_.Extension -eq ".clz") -or ($_.Extension -eq ".cpz" -or ($_.Extension -eq ".cplz"))} | ForEach-Object {
Get-ChildItem -Path $destination | Where-Object { ($_.Extension -eq ".clz") -or ($_.Extension -eq ".cpz") -or ($_.Extension -eq ".cplz") } | ForEach-Object {
# Replace the extensions with dll or xml and create an array
$filenames = @($($_ -replace "cpz|clz|cplz", "dll"), $($_ -replace "cpz|clz|cplz", "xml"))
Write-Host "Filenames:"