mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 01:04:06 +08:00
fix command
This commit is contained in:
parent
c653bf1f38
commit
969f314658
@ -4,5 +4,5 @@ var version = struct {
|
|||||||
host string
|
host string
|
||||||
self int
|
self int
|
||||||
}{
|
}{
|
||||||
"2019-07-10 04:23:04", "ZYB-20190522USI.ubuntu", 135,
|
"2019-07-10 05:27:50", "ZYB-20190522USI.ubuntu", 136,
|
||||||
}
|
}
|
||||||
|
@ -667,6 +667,9 @@ var Index = &Context{Name: "ctx", Help: "模块中心", Server: &CTX{},
|
|||||||
|
|
||||||
switch action {
|
switch action {
|
||||||
case "cmd":
|
case "cmd":
|
||||||
|
if arg[0] == "command" {
|
||||||
|
arg = arg[1:]
|
||||||
|
}
|
||||||
if msg.Cmd(arg); !msg.Hand {
|
if msg.Cmd(arg); !msg.Hand {
|
||||||
msg = msg.Cmd("cli.cmd", arg)
|
msg = msg.Cmd("cli.cmd", arg)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user