mirror of
https://github.com/beclab/Olares
synced 2026-05-24 01:08:23 +00:00
fix: wsl shutdown command not working on newer WSL versions (#2040)
This commit is contained in:
parent
df2b5b4274
commit
a0e8a69848
1 changed files with 1 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ func (c *ConfigWslConf) Execute(runtime connector.Runtime) error {
|
|||
}
|
||||
|
||||
cmd = &utils.DefaultCommandExecutor{
|
||||
Commands: []string{"--shutdown", distro},
|
||||
Commands: []string{"-t", distro},
|
||||
}
|
||||
if _, err := cmd.RunCmd("wsl", utils.DEFAULT); err != nil {
|
||||
return errors.Wrap(errors.WithStack(err), fmt.Sprintf("shutdown wsl %s failed", distro))
|
||||
|
|
|
|||
Loading…
Reference in a new issue