Skip to content

Commit

Permalink
fix: opt pump cache, issue: TencentBlueKing#296
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Sep 25, 2024
1 parent 52041d6 commit 8399658
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 8399658

Please sign in to comment.