quotes removed from the after/before commands

This commit is contained in:
alessio 2016-09-05 20:11:45 +02:00
parent 6ce7593407
commit 1cc2e64e5c

View File

@ -139,6 +139,7 @@ func (p *Project) GoTest(path string) (io.Writer, error) {
// Cmd exec a list of defined commands
func (p *Project) Cmd(cmds []string) (errors []error) {
for _, cmd := range cmds {
cmd := strings.Replace(strings.Replace(cmd, "'", "", -1), "\"", "", -1)
c := strings.Split(cmd, " ")
build := exec.Command(c[0], c[1:]...)
build.Dir = p.base