Set CONFIG_MODULE to full path by default

This commit is contained in:
Manuel Thalmann 2024-08-02 01:57:31 +02:00
parent e10a91094e
commit b37815498a

View file

@ -18,8 +18,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;
}