Refactor the wsl installation check
This commit is contained in:
parent
bbbbff7be4
commit
30e7c163f2
|
@ -74,7 +74,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;
|
||||||
|
|
Loading…
Reference in a new issue