From f036323a82250886ac4cf25955708a27cf87dd20 Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Thu, 20 Jul 2023 14:46:50 +0100 Subject: [PATCH] Fix error when trying to delete and file doesn't exist --- ue-plugin-package.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ue-plugin-package.ps1 b/ue-plugin-package.ps1 index c6b14ad..d853833 100644 --- a/ue-plugin-package.ps1 +++ b/ue-plugin-package.ps1 @@ -219,7 +219,7 @@ try { Write-Output "" } else { - Remove-Item -Path $zipdst -Force + Remove-Item -Path $zipdst -Force -ErrorAction SilentlyContinue $proc = Start-Process "7z.exe" $argList -Wait -PassThru -NoNewWindow if ($proc.ExitCode -ne 0) { throw "7-Zip failed!"