summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/unix.go b/unix.go
index 1c8cfe0..903adba 100644
--- a/unix.go
+++ b/unix.go
@@ -411,3 +411,16 @@ func (rs *RepoStatus) XtermHold(args []string) {
log.Info("cmd = xterm", argsX)
}
}
+
+func (rs *RepoStatus) DoAll(all [][]string) bool {
+ for _, cmd := range all {
+ log.Info("doAll() RUNNING: cmd =", cmd)
+ err, out := rs.RunCmd(cmd)
+ log.Info("doAll() err =", err)
+ log.Info("doAll() out =", out)
+ if err != nil {
+ return false
+ }
+ }
+ return true
+}