mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 09:14:06 +08:00
tce add some
This commit is contained in:
parent
c718391248
commit
3c64ecf27a
@ -2407,7 +2407,7 @@ var Index = &Context{Name: "ctx", Help: "模块中心",
|
|||||||
msg.Cmd(arg)
|
msg.Cmd(arg)
|
||||||
m.Meta["result"] = append(m.Meta["result"], msg.Meta["result"]...)
|
m.Meta["result"] = append(m.Meta["result"], msg.Meta["result"]...)
|
||||||
m.Copy(msg, "append")
|
m.Copy(msg, "append")
|
||||||
m.target = msg.target
|
// m.target = msg.target
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }}}
|
// }}}
|
||||||
|
@ -1265,15 +1265,8 @@ var Index = &ctx.Context{Name: "nfs", Help: "存储中心",
|
|||||||
}
|
}
|
||||||
|
|
||||||
m.Log("info", "cmd: %s %v", "git", ctx.Trans("-C", p, c, args))
|
m.Log("info", "cmd: %s %v", "git", ctx.Trans("-C", p, c, args))
|
||||||
cmd := exec.Command("git", ctx.Trans("-C", p, c, args)...)
|
msg := m.Sess("cli").Cmd("system", "git", "-C", p, c, args)
|
||||||
if out, e := cmd.CombinedOutput(); e != nil {
|
m.Copy(msg, "result").Copy(msg, "append")
|
||||||
m.Echo("error: ")
|
|
||||||
m.Echo("%s\n", e)
|
|
||||||
} else {
|
|
||||||
if m.Echo(string(out)); len(out) > 0 {
|
|
||||||
m.Echo("\n")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} // }}}
|
} // }}}
|
||||||
}},
|
}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user