Fix exec error.

This commit is contained in:
awalsh128 2025-03-16 14:39:03 -07:00
parent 2330cb6dfb
commit 7ca5f46d06
3 changed files with 3 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View file

@ -16,11 +16,9 @@ type BinExecutor struct{}
func (c *BinExecutor) Exec(name string, arg ...string) *Execution {
cmd := exec.Command(name, arg...)
err := cmd.Run()
out, outErr := cmd.CombinedOutput()
if outErr != nil {
logging.Fatal(outErr)
out, err := cmd.CombinedOutput()
if err != nil {
logging.Fatal(err)
}
execution := &Execution{