From bc3ade3be930e016d285c6e779182474e8122b44 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Thu, 4 Feb 2016 12:21:06 -0800 Subject: [PATCH] Fixed creation of the command args --- client/driver/plugins/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/driver/plugins/executor.go b/client/driver/plugins/executor.go index 3a9ae2b51..d4c572e32 100644 --- a/client/driver/plugins/executor.go +++ b/client/driver/plugins/executor.go @@ -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 {