格式化注释
This commit is contained in:
parent
42f3c71b14
commit
5b1a62ee63
|
@ -127,6 +127,7 @@ func WSHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 以管道方式执行多个命令.
|
||||||
func pipeCommands(username string, commands ...*exec.Cmd) string {
|
func pipeCommands(username string, commands ...*exec.Cmd) string {
|
||||||
for i, command := range commands[:len(commands)-1] {
|
for i, command := range commands[:len(commands)-1] {
|
||||||
setCmdEnv(command, username)
|
setCmdEnv(command, username)
|
||||||
|
|
Loading…
Reference in New Issue