From f217f8bd49f8b39170cb2b42bc62f234f1ef6277 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 8 Aug 2024 22:21:49 +0200 Subject: [PATCH] Refactor the wsl installation check --- scripts/Windows/OS/Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index a0f526fd..265255a2 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -73,7 +73,7 @@ $null = New-Module { continue; } - if (-not (& { wsl --status; $?; })) { + if (-not (& { $null = wsl --status; $?; })) { wsl --install --no-launch; Restart-Intermediate; return;