summaryrefslogtreecommitdiff
path: root/internal/io
diff options
context:
space:
mode:
Diffstat (limited to 'internal/io')
-rw-r--r--internal/io/run/run.go5
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)