diff --git a/base/cli/mirrors.go b/base/cli/mirrors.go index 9b6a35bf..3660a6ed 100644 --- a/base/cli/mirrors.go +++ b/base/cli/mirrors.go @@ -1,7 +1,6 @@ package cli import ( - "os" "runtime" "strings" @@ -77,7 +76,7 @@ func init() { case strings.Contains(_release, ALPINE): m.Cmdy(nfs.CAT, ETC_APK_REPOS) } - m.EchoScript(kit.Format("cd %s; %s", kit.Path(""), kit.JoinCmds(kit.Simple(kit.Path(os.Args[0]), os.Args[1:])...))) + // m.EchoScript(kit.Format("cd %s; %s", kit.Path(""), kit.JoinCmds(kit.Simple(kit.Path(os.Args[0]), os.Args[1:])...))) }}, }) } diff --git a/base/web/dream.go b/base/web/dream.go index 324a6a37..6a518c0e 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -507,13 +507,8 @@ func init() { m.Sort("type,status,name", []string{aaa.LOGIN, WORKER, SERVER, ORIGIN}, []string{cli.START, cli.STOP, cli.BEGIN}, ice.STR_R) m.StatusTimeCountStats(mdb.TYPE, mdb.STATUS) ctx.DisplayTableCard(m) - if !m.IsDebug() { - m.Options(ice.MSG_TOOLKIT, "") - } - if !aaa.IsTechOrRoot(m) { - m.Options(ice.MSG_TOOLKIT, "") - m.Options(ice.MSG_ONLINE, ice.FALSE) - } + kit.If(!aaa.IsTechOrRoot(m), func() { m.Options(ice.MSG_TOOLKIT, "", ice.MSG_ONLINE, ice.FALSE) }) + kit.If(!m.IsDebug(), func() { m.Options(ice.MSG_TOOLKIT, "") }) } else if arg[0] == ctx.ACTION { gdb.Event(m, DREAM_ACTION, arg) } else {