Fix possible non-existent variable

This commit is contained in:
Manuel Thalmann 2023-07-26 14:56:17 +02:00
parent b4d4e6d10f
commit ee4434f91a

View file

@ -7,10 +7,11 @@
function Invoke-WindowsInstallation([Context] $context) function Invoke-WindowsInstallation([Context] $context)
{ {
if (-not $context.Get("InitialConfiguration")) {
$configPath = "$PSScriptRoot/../Config"; $configPath = "$PSScriptRoot/../Config";
$softwarePath = "$PSScriptRoot/../Software"; $softwarePath = "$PSScriptRoot/../Software";
if (-not $context.Get("InitialConfiguration")) {
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3"; $null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";
. "$configPath/Windows/Install.ps1" $context; . "$configPath/Windows/Install.ps1" $context;