1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

fix command

This commit is contained in:
shaoying 2019-07-10 05:35:29 -07:00
parent c653bf1f38
commit 969f314658
2 changed files with 4 additions and 1 deletions

View File

@ -4,5 +4,5 @@ var version = struct {
host string
self int
}{
"2019-07-10 04:23:04", "ZYB-20190522USI.ubuntu", 135,
"2019-07-10 05:27:50", "ZYB-20190522USI.ubuntu", 136,
}

View File

@ -667,6 +667,9 @@ var Index = &Context{Name: "ctx", Help: "模块中心", Server: &CTX{},
switch action {
case "cmd":
if arg[0] == "command" {
arg = arg[1:]
}
if msg.Cmd(arg); !msg.Hand {
msg = msg.Cmd("cli.cmd", arg)
}