Remove existing backup files

This commit is contained in:
Manuel Thalmann 2023-08-05 03:03:57 +02:00
parent 1a5ce2d870
commit be2f9f51dc

View file

@ -159,6 +159,10 @@ class Context {
Remove-Item -Recurse $archivePath; Remove-Item -Recurse $archivePath;
} }
if (Test-Path "$archivePath.*") {
Remove-Item -Recurse "$archivePath.*";
}
Start-Process -WorkingDirectory "$sourcePath" ` Start-Process -WorkingDirectory "$sourcePath" `
-FilePath "7z" ` -FilePath "7z" `
-ArgumentList ( -ArgumentList (