Set CONFIG_MODULE to full path by default

This commit is contained in:
Manuel Thalmann 2024-08-02 01:57:31 +02:00
parent ba273daa32
commit 337715c629

View file

@ -17,8 +17,13 @@ $null = New-Module {
Finishes the installation of a running Windows machine.
#>
function Start-WindowsInstallation {
$env:WSLENV = "CONFIG_MODULE/p";
$ErrorActionPreference = 'Inquire';
$env:WSLENV = "CONFIG_MODULE/p";
if ($env:CONFIG_MODULE) {
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
}
Start-InstallationLoop;
}