Refactor the wsl installation check
This commit is contained in:
parent
1fa55e9578
commit
6b6cbd337c
|
@ -73,7 +73,7 @@ $null = New-Module {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (-not (& { wsl --status; $?; })) {
|
||||
if (-not (& { $null = wsl --status; $?; })) {
|
||||
wsl --install --no-launch;
|
||||
Restart-Intermediate;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue