[agent-wdd] 完成Excecutor和Operator部分,完成base tools部分
This commit is contained in:
@@ -77,6 +77,13 @@ func (o *OS) Gather() {
|
||||
o.Kernel = strings.TrimSpace(string(out))
|
||||
}
|
||||
|
||||
// 检查包管理的方式
|
||||
c := exec.Command("command", "-v", "apt")
|
||||
_, err = c.Output()
|
||||
if err == nil {
|
||||
o.IsUbuntuType = true
|
||||
}
|
||||
|
||||
// 获取系统架构
|
||||
o.Arch = runtime.GOARCH
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user