格式化注释

This commit is contained in:
Liang Ding 2014-10-08 13:54:16 +08:00
parent 42f3c71b14
commit 5b1a62ee63
4 changed files with 10 additions and 9 deletions

View File

@ -127,6 +127,7 @@ func WSHandler(w http.ResponseWriter, r *http.Request) {
}
}
// 以管道方式执行多个命令.
func pipeCommands(username string, commands ...*exec.Cmd) string {
for i, command := range commands[:len(commands)-1] {
setCmdEnv(command, username)