Refactor the wsl installation check

This commit is contained in:
Manuel Thalmann 2024-08-08 22:21:49 +02:00
parent 53e1cf80f1
commit da3376c462

View file

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