From 337715c62992c5b9041320678891c8b3ea5ea9bf 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 eb2ec892..ed28c7ce 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -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; }