summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell.go b/shell.go
index b7c0018..c9ea1ed 100644
--- a/shell.go
+++ b/shell.go
@@ -108,3 +108,16 @@ func (repo *Repo) IsDirectory() bool {
}
return info.IsDir()
}
+
+func (repo *Repo) RunAll(all [][]string) bool {
+ for _, cmd := range all {
+ log.Log(GITPBWARN, "doAll() RUNNING: cmd =", cmd)
+ r := repo.Run(cmd)
+ if r.Error != nil {
+ log.Log(GITPBWARN, "doAll() err =", r.Error)
+ log.Log(GITPBWARN, "doAll() out =", r.Stdout)
+ return false
+ }
+ }
+ return true
+}