Merge pull request #28 from tockins/dev

bug fix
This commit is contained in:
Alessio Pracchia 2016-11-22 20:05:49 +01:00 committed by GitHub
commit 51d70d537a
2 changed files with 6 additions and 5 deletions

View File

@ -4,10 +4,6 @@ go:
- 1.6 - 1.6
- 1.7 - 1.7
- tip - tip
before_install:
- go get gopkg.in/urfave/cli.v2
- go get gopkg.in/yaml.v2
- go get github.com/fatih/color
matrix: matrix:
allow_failures: allow_failures:
- go: tip - go: tip

View File

@ -17,7 +17,12 @@ func (p *Project) goRun(channel chan bool, runner chan bool, wr *sync.WaitGroup)
var build *exec.Cmd var build *exec.Cmd
if len(p.Params) != 0 { 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 { } else {
build = exec.Command(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path))) build = exec.Command(filepath.Join(os.Getenv("GOBIN"), filepath.Base(p.path)))
} }