mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Fix error when trying to delete and file doesn't exist
This commit is contained in:
parent
b55c4b0dac
commit
f036323a82
@ -219,7 +219,7 @@ try {
|
|||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Remove-Item -Path $zipdst -Force
|
Remove-Item -Path $zipdst -Force -ErrorAction SilentlyContinue
|
||||||
$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!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user