Take path for wsl instead of forcing through WindowsApps

Signed-off-by: Matheus Cunha <matheusvflor@hotmail.com>
This commit is contained in:
Matheus Vitório
2025-05-06 11:59:01 +02:00
committed by Matheus Cunha
parent ebbf90decc
commit b6eeaea7f3
6 changed files with 26 additions and 78 deletions

View File

@ -48,7 +48,7 @@ func installWslKernel() error {
)
backoff := 500 * time.Millisecond
for i := 1; i < 6; i++ {
err = wutil.SilentExec(wutil.FindWSL(), "--update")
err = wutil.SilentExec("wsl", "--update")
if err == nil {
break
}