From c14d1695c81783c90d4282f69838d32f74039ec7 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 11 Jul 2023 18:22:14 +0200 Subject: [PATCH] Prevent restoration context from being overwritten --- scripts/Windows/OS/Manage.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Windows/OS/Manage.ps1 b/scripts/Windows/OS/Manage.ps1 index c3a3c2ca..de2c873e 100644 --- a/scripts/Windows/OS/Manage.ps1 +++ b/scripts/Windows/OS/Manage.ps1 @@ -30,7 +30,6 @@ function Restore-WindowsInstallation([Context] $context) { Write-Information "Determining Backup Archive Path"; $backupPath = Read-Path; - $context = [Context]::new(); $context.BackupName ??= "PortValhalla"; $context.RootDir = $context.GetTempDirectory();