mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-05-21 04:42:20 +00:00
Fix exec error.
This commit is contained in:
parent
2330cb6dfb
commit
7ca5f46d06
BIN
apt_query-arm64
BIN
apt_query-arm64
Binary file not shown.
BIN
apt_query-x86
BIN
apt_query-x86
Binary file not shown.
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue