mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-07 08:23:12 +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 {
|
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{
|
||||||
|
|
Loading…
Reference in a new issue