Remove existing backup files
This commit is contained in:
parent
1a5ce2d870
commit
be2f9f51dc
|
@ -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