summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go15
1 files changed, 5 insertions, 10 deletions
diff --git a/shell.go b/shell.go
index 6a7b996..aff56ef 100644
--- a/shell.go
+++ b/shell.go
@@ -136,19 +136,14 @@ func (repo *Repo) RunStrictAll(all [][]string) (*cmd.Status, error) {
return nil, nil
}
-func (repo *Repo) RunVerbose(cmd []string) (*cmd.Status, error) {
- log.Info("Running:", repo.GetGoPath(), cmd)
- r, err := repo.RunStrict(cmd)
+func (repo *Repo) RunVerbose(cmd []string) error {
+ log.Info("EXEC Running:", repo.GetGoPath(), cmd)
+ err := shell.PathExecVerbose(repo.GetFullPath(), cmd)
if err != nil {
log.Info("Error", cmd, err)
+ return err
}
- for _, line := range r.Stdout {
- log.Info(line)
- }
- for _, line := range r.Stderr {
- log.Info(line)
- }
- return r, err
+ return nil
}
func (repo *Repo) RunVerboseOnError(cmd []string) (*cmd.Status, error) {