Allow creation of backups without specifying 7z arguments

This commit is contained in:
Manuel Thalmann 2023-08-01 03:34:56 +02:00
parent db4cc549f4
commit b9ecde1340
2 changed files with 5 additions and 1 deletions
scripts/Windows/Scripts

View file

@ -146,6 +146,10 @@ class Context {
return $this.ArchivePath($softwareName);
}
[void] Backup([string]$sourcePath, [string]$archivePath) {
$this.Backup($sourcePath, $archivePath, @());
}
[void] Backup([string]$sourcePath, [string]$archivePath, [string[]]$arguments) {
if (Test-Path $archivePath) {
Remove-Item -Recurse $archivePath;