From a25e743047cdc2304afb346de339b5e80a4a3088 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 a163e6e5..d321ac4d 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;