Prevent restoration context from being overwritten

This commit is contained in:
Manuel Thalmann 2023-07-11 18:22:14 +02:00
parent 9f46580fa1
commit c14d1695c8

View file

@ -30,7 +30,6 @@ function Restore-WindowsInstallation([Context] $context) {
Write-Information "Determining Backup Archive Path"; Write-Information "Determining Backup Archive Path";
$backupPath = Read-Path; $backupPath = Read-Path;
$context = [Context]::new();
$context.BackupName ??= "PortValhalla"; $context.BackupName ??= "PortValhalla";
$context.RootDir = $context.GetTempDirectory(); $context.RootDir = $context.GetTempDirectory();