mirror of
https://github.com/xiaoqidun/wslkd.git
synced 2025-04-04 13:17:54 +08:00
This commit is contained in:
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module github.com/xiaoqidun/wslkd
|
|||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
require github.com/xiaoqidun/gowsl v0.0.0-20221122052230-b17f2681ea51
|
require github.com/xiaoqidun/gowsl v0.0.0-20221123135340-9b7eb4ccd62d
|
||||||
|
4
go.sum
4
go.sum
@ -1,2 +1,2 @@
|
|||||||
github.com/xiaoqidun/gowsl v0.0.0-20221122052230-b17f2681ea51 h1:0Jvs3fS8BzIgNzlbNFIMQgu8s6aArzAYG/hhezFdb4I=
|
github.com/xiaoqidun/gowsl v0.0.0-20221123135340-9b7eb4ccd62d h1:HRKereChGHmbBcGDi6HfEEEgX33XPI6t7oYea6Ta1kw=
|
||||||
github.com/xiaoqidun/gowsl v0.0.0-20221122052230-b17f2681ea51/go.mod h1:vChfMUbrX0q82bf4QOClSCJO+p1LDtpzrpzW0ggMy9U=
|
github.com/xiaoqidun/gowsl v0.0.0-20221123135340-9b7eb4ccd62d/go.mod h1:vChfMUbrX0q82bf4QOClSCJO+p1LDtpzrpzW0ggMy9U=
|
||||||
|
2
wslkd.go
2
wslkd.go
@ -33,7 +33,7 @@ func exec(done *sync.WaitGroup, distro string) {
|
|||||||
log.Printf("%v does not exist\n", distro)
|
log.Printf("%v does not exist\n", distro)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
cmd := gowsl.Command(distro, "/bin/bash")
|
cmd := gowsl.Command(distro, "", "/bin/bash")
|
||||||
cmd.Stdin = os.Stdin
|
cmd.Stdin = os.Stdin
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
Reference in New Issue
Block a user