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 { func (c *BinExecutor) Exec(name string, arg ...string) *Execution {
cmd := exec.Command(name, arg...) cmd := exec.Command(name, arg...)
err := cmd.Run() out, err := cmd.CombinedOutput()
if err != nil {
out, outErr := cmd.CombinedOutput() logging.Fatal(err)
if outErr != nil {
logging.Fatal(outErr)
} }
execution := &Execution{ execution := &Execution{