Never update archive, always replace

This commit is contained in:
Steve Streeting 2023-06-29 14:57:19 +01:00
parent d764bb32be
commit 779ab86637

View File

@ -224,7 +224,8 @@ try {
Write-Output "> 7z.exe $($argList -join " ")" Write-Output "> 7z.exe $($argList -join " ")"
Write-Output "" Write-Output ""
} else { } else {
Remove-Item -Path $zipdst -Force
$proc = Start-Process "7z.exe" $argList -Wait -PassThru -NoNewWindow $proc = Start-Process "7z.exe" $argList -Wait -PassThru -NoNewWindow
if ($proc.ExitCode -ne 0) { if ($proc.ExitCode -ne 0) {
throw "7-Zip failed!" throw "7-Zip failed!"