diff --git a/controller/copy_build.go b/controller/copy_build.go index 20b090e..0423716 100644 --- a/controller/copy_build.go +++ b/controller/copy_build.go @@ -40,6 +40,9 @@ try { New-Item -ItemType Directory -Path '%s' -Force | Out-Null } + # Remove any .zip files in the destination folder before copying + Get-ChildItem -Path "z:\" -Filter *.zip -File -ErrorAction SilentlyContinue | Remove-Item -Force -ErrorAction SilentlyContinue + Write-Host "Starting to copy files to the server" Copy-Item -Path '%s' -Destination "z:\" -Force