Refactor the wsl installation check
This commit is contained in:
parent
6d371c9eae
commit
863e8d0a53
|
@ -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