From ee4434f91a4ce6a81cd2facad2daa6ae953614f4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 26 Jul 2023 14:56:17 +0200 Subject: [PATCH] Fix possible non-existent variable --- scripts/Windows/OS/Install.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 06df6afa..bae56733 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -7,9 +7,10 @@ function Invoke-WindowsInstallation([Context] $context) { + $configPath = "$PSScriptRoot/../Config"; + $softwarePath = "$PSScriptRoot/../Software"; + if (-not $context.Get("InitialConfiguration")) { - $configPath = "$PSScriptRoot/../Config"; - $softwarePath = "$PSScriptRoot/../Software"; $null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";