[agent-go] fix-bugs

This commit is contained in:
zeaslity
2023-03-30 16:17:13 +08:00
parent 61481e7543
commit 3e9c95ed6d
2 changed files with 4 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ func PipeLineCommandExecutor(pipeLineCommand [][]string) ([]string, error) {
prevCmd := cmds[i-1]
out, err := prevCmd.StdoutPipe()
if err != nil {
log.ErrorF("Pipeline command error happened! Command is => %v, Error is %v", partOfCommand, err)
return nil, err
}
cmd.Stdin = out