diff options
| author | Jeff Carr <[email protected]> | 2025-02-12 15:10:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-12 15:10:13 -0600 |
| commit | 4fdcc992412ab2b06b5314f27a6f20b4c73b7ef6 (patch) | |
| tree | e3954e80a2e509e22666cf181e3687ca0b819d36 /protoc.go | |
| parent | eaa7293fc7e21384c7e54700c92d6189150dda5b (diff) | |
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 } +*/ |
