From 71c7118470eec709d0f52738d08686f02d26601b Mon Sep 17 00:00:00 2001 From: alessio Date: Tue, 22 Nov 2016 17:53:49 +0100 Subject: [PATCH 1/2] travis before install --- .travis.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c854282..78a925b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,6 @@ go: - 1.6 - 1.7 - tip -before_install: - - go get gopkg.in/urfave/cli.v2 - - go get gopkg.in/yaml.v2 - - go get github.com/fatih/color matrix: allow_failures: - go: tip \ No newline at end of file From ecc5bf39450e9a99f070f2b631b3ac8d8c83b9eb Mon Sep 17 00:00:00 2001 From: alessio Date: Tue, 22 Nov 2016 20:03:25 +0100 Subject: [PATCH 2/2] fixed #27 --- watcher/exec.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/watcher/exec.go b/watcher/exec.go index 02ec618..bf489fa 100644 --- a/watcher/exec.go +++ b/watcher/exec.go @@ -17,7 +17,12 @@ func (p *Project) goRun(channel chan bool, runner chan bool, wr *sync.WaitGroup) var build *exec.Cmd if len(p.Params) != 0 { - build = exec.Command(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path)), p.Params...) + var params []string + for _, param := range p.Params { + arr := strings.Fields(param) + params = append(params, arr...) + } + build = exec.Command(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path)), params...) } else { build = exec.Command(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path))) }