Skip to content

Commit

Permalink
Merge pull request #302 from tbs60/dev_tming
Browse files Browse the repository at this point in the history
fix: opt pump cache, issue: #296
  • Loading branch information
tming authored Sep 25, 2024
2 parents 20727d7 + b393f55 commit d6a9b5b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ func searchAS(exe string) []string {
blog.Infof("basic: ready run cmd:[%s] for exe:%s", cmd, exe)
sandbox := dcSyscall.Sandbox{}
_, out, _, err := sandbox.ExecScriptsWithMessage(cmd)
if err != nil {
// 出错,或者只返回了as(没有完整路径,需要从系统得到)
if err != nil || strings.TrimSpace(string(out)) == "as" {
blog.Warnf("basic: search as with out:%s,error:%+v", out, err)

cmd = "which as"
Expand Down

0 comments on commit d6a9b5b

Please sign in to comment.