summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-14 00:09:58 -0600
committerJeff Carr <[email protected]>2024-02-14 00:09:58 -0600
commitf7947b08b69b1a2f02168de511e7c8b005035221 (patch)
treeadae2c1f5b0bc546a078e1311b3e18b0a0636578 /unix.go
parent95fd6ca05a28774ad374801984a4f62c202835d3 (diff)
code reorg and clean
Signed-off-by: Jeff Carr <[email protected]>
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
+}