修改 atomic 引用

This commit is contained in:
bjdgyc
2024-03-14 16:47:25 +08:00
parent 57a67ee030
commit 000b041578
10 changed files with 59 additions and 37 deletions

View File

@@ -2,8 +2,9 @@ package handler
import (
"encoding/xml"
"log"
"os/exec"
"github.com/bjdgyc/anylink/base"
)
const BufferSize = 2048
@@ -46,7 +47,7 @@ func execCmd(cmdStrs []string) error {
cmd := exec.Command("sh", "-c", cmdStr)
b, err := cmd.CombinedOutput()
if err != nil {
log.Println(string(b))
base.Error(cmdStr, string(b))
return err
}
}