diff options
| author | Paul Bütow <pbuetow@mimecast.com> | 2020-02-12 22:06:56 +0000 |
|---|---|---|
| committer | Paul Bütow <pbuetow@mimecast.com> | 2020-02-12 22:06:56 +0000 |
| commit | a1a0990f5e261f395a2d699cd7602ca4a6a5b6c4 (patch) | |
| tree | 57b65564af5cb317430142fe7badd08318ccf4c2 /internal/io | |
| parent | b4176ce3443567b16fef9f91c5a42a63d8d5e026 (diff) | |
bump version
Diffstat (limited to 'internal/io')
| -rw-r--r-- | internal/io/run/run.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/io/run/run.go b/internal/io/run/run.go index b608639..c0c6868 100644 --- a/internal/io/run/run.go +++ b/internal/io/run/run.go @@ -5,7 +5,6 @@ import ( "context" "io" "os/exec" - "strings" "sync" "time" @@ -37,8 +36,8 @@ func (r Run) Start(ctx context.Context, lines chan<- line.Line) (pid int, ec int pid = -1 if len(r.args) > 0 { - logger.Debug(r.commandPath, strings.Join(r.args, " ")) - r.cmd = exec.CommandContext(ctx, r.commandPath, strings.Join(r.args, " ")) + logger.Debug(r.commandPath, r.args, " ") + r.cmd = exec.CommandContext(ctx, r.commandPath, r.args...) } else { logger.Debug(r.commandPath) r.cmd = exec.CommandContext(ctx, r.commandPath) |
