Skip to content

Commit

Permalink
fix args
Browse files Browse the repository at this point in the history
  • Loading branch information
dengjialong committed Feb 13, 2020
1 parent 66d86fb commit 9e2700f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applications/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"syscall"
"time"

Expand Down Expand Up @@ -77,7 +78,8 @@ func (c *Command) configure(config map[string]interface{}) error {
}

func (c *Command) build() error {
c.Cmd = exec.Command(c.Program, c.Args)
args := strings.Split(c.Args, " ")
c.Cmd = exec.Command(c.Program, args...)
c.Cmd.Dir = c.Dir
if !file.Exists(c.Stdout) {
err := file.Mkdir(filepath.Dir(c.Stdout))
Expand Down

0 comments on commit 9e2700f

Please sign in to comment.