Fix possible non-existent variable
This commit is contained in:
parent
b4d4e6d10f
commit
ee4434f91a
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue