refactor(controller): copy to server now deletes existing .zip to reduce issues
This commit is contained in:
@@ -40,6 +40,9 @@ try {
|
|||||||
New-Item -ItemType Directory -Path '%s' -Force | Out-Null
|
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"
|
Write-Host "Starting to copy files to the server"
|
||||||
Copy-Item -Path '%s' -Destination "z:\" -Force
|
Copy-Item -Path '%s' -Destination "z:\" -Force
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user