Use temporary directory for restoration

This commit is contained in:
Manuel Thalmann 2023-06-16 20:27:07 +02:00
parent f99b180f98
commit db17c2c42c

View file

@ -44,5 +44,7 @@ function Invoke-WindowsRestore() {
$backupPath = Read-Path;
$context = [Context]::new();
$context.BackupName = "PortValhalla";
$context.RootDir = $context.GetTempDirectory();
$context.Restore($backupPath, $context.BackupRoot());
Remove-Item -Recurse $context.RootDir;
}