Set CONFIG_MODULE to full path by default

This commit is contained in:
Manuel Thalmann 2024-08-02 01:57:31 +02:00
parent 7f0e9df340
commit b25b760f7d

View file

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