Refactor the wsl installation check

This commit is contained in:
Manuel Thalmann 2024-08-08 22:21:49 +02:00
parent bbbbff7be4
commit 30e7c163f2

View file

@ -74,7 +74,7 @@ $null = New-Module {
continue;
}
if (-not (& { wsl --status; $?; })) {
if (-not (& { $null = wsl --status; $?; })) {
wsl --install --no-launch;
Restart-Intermediate;
return;