diff options
Diffstat (limited to 'protoc.go')
| -rw-r--r-- | protoc.go | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -96,16 +96,18 @@ func (pb *Files) protocBuild(pf *File) error { for i, s := range cmd { log.Info("\t", i, s) } - return runprotoc(argv.GoSrc, cmd) + os.Chdir(argv.GoSrc) + _, err = shell.RunVerbose(cmd) + return err } +/* func runprotoc(pwd string, mycmd []string) error { - result := shell.PathRun(argv.GoSrc, mycmd) - if result.Error != nil { - return userNotes(result) - } - if result.Exit != 0 { - return userNotes(result) + os.Chdir(argv.GoSrc) + err := shell.Exec(mycmd) + if err != nil { + return err } return nil } +*/ |
