From b37815498a3a8c9d2dd518f8e3ec2a2de77c7ab4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 2 Aug 2024 01:57:31 +0200 Subject: [PATCH] Set `CONFIG_MODULE` to full path by default --- scripts/Windows/OS/Install.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 88e9618e..fcbd3df5 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -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; }