Remove existing backup files
This commit is contained in:
parent
d4a64e8e71
commit
a944f8d575
1 changed files with 4 additions and 0 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue