Fixed creation of the command args

This commit is contained in:
Diptanu Choudhury
2016-02-04 12:21:06 -08:00
parent 797d9b8c47
commit bc3ade3be9

View File

@@ -96,7 +96,7 @@ func (e *UniversalExecutor) LaunchCmd(command *ExecCommand, ctx *ExecutorContext
e.cmd.Env = ctx.TaskEnv.EnvList()
e.cmd.Path = ctx.TaskEnv.ReplaceEnv(command.Cmd)
e.cmd.Args = ctx.TaskEnv.ParseAndReplace(command.Args)
e.cmd.Args = append([]string{e.cmd.Path}, ctx.TaskEnv.ParseAndReplace(command.Args)...)
if filepath.Base(command.Cmd) == command.Cmd {
if lp, err := exec.LookPath(command.Cmd); err != nil {
} else {