diff options
| author | Jeff Carr <[email protected]> | 2024-02-14 00:09:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-14 00:09:58 -0600 |
| commit | f7947b08b69b1a2f02168de511e7c8b005035221 (patch) | |
| tree | adae2c1f5b0bc546a078e1311b3e18b0a0636578 /unix.go | |
| parent | 95fd6ca05a28774ad374801984a4f62c202835d3 (diff) | |
code reorg and clean
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
| -rw-r--r-- | unix.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 +} |
