All checks were successful
drawio-export/pipeline/head This commit looks good
This PR closes #2 Reviewed-on: #4
21 lines
340 B
Go
21 lines
340 B
Go
package drawio
|
||
|
||
import (
|
||
"errors"
|
||
"os/exec"
|
||
)
|
||
|
||
// Последовательный запуск команд в ОС
|
||
func RunSequence(command ...*exec.Cmd) error {
|
||
var (
|
||
errs = []error{}
|
||
err error
|
||
)
|
||
for _, cmd := range command {
|
||
if err = cmd.Run(); err != nil {
|
||
errs = append(errs, err)
|
||
}
|
||
}
|
||
return errors.Join(errs...)
|
||
}
|