Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/TencentBlueKing/bk-turbo
Browse files Browse the repository at this point in the history
…into dev_yanafu
  • Loading branch information
flyy1012 committed Sep 25, 2024
2 parents 1a9708c + d6a9b5b commit d32af23
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 d32af23

Please sign in to comment.