From 779ab86637a0064b07ac6ee7e7682eb6c84fba5a Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Thu, 29 Jun 2023 14:57:19 +0100 Subject: [PATCH] Never update archive, always replace --- ue-plugin-package.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ue-plugin-package.ps1 b/ue-plugin-package.ps1 index b2c386f..dc9a795 100644 --- a/ue-plugin-package.ps1 +++ b/ue-plugin-package.ps1 @@ -224,7 +224,8 @@ try { Write-Output "> 7z.exe $($argList -join " ")" Write-Output "" - } else { + } else { + Remove-Item -Path $zipdst -Force $proc = Start-Process "7z.exe" $argList -Wait -PassThru -NoNewWindow if ($proc.ExitCode -ne 0) { throw "7-Zip failed!"