diff options
Diffstat (limited to 'shell.go')
| -rw-r--r-- | shell.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -23,6 +23,17 @@ func (repo *Repo) Run(cmd []string) cmd.Status { return result } +func (repo *Repo) RunQuiet(cmd []string) cmd.Status { + result := shell.PathRunQuiet(repo.FullPath, cmd) + output := strings.Join(result.Stdout, "\n") + if result.Error != nil { + log.Warn("cmd:", cmd) + log.Warn("ouptput:", output) + log.Warn("failed with error:", result.Error) + } + return result +} + // for now, even check cmd.Exit func (repo *Repo) strictRun(cmd []string) (bool, error) { result := repo.Run(cmd) |
