()
| 147 | } |
| 148 | |
| 149 | func LoadArch() (string, error) { |
| 150 | std, err := cmd.NewCommandMgr().RunWithStdout("uname", "-a") |
| 151 | if err != nil { |
| 152 | return "", fmt.Errorf("std: %s, err: %s", std, err.Error()) |
| 153 | } |
| 154 | return LoadArchWithStdout(std) |
| 155 | } |
| 156 | func LoadArchWithStdout(std string) (string, error) { |
| 157 | if strings.Contains(std, "x86_64") { |
| 158 | return "amd64", nil |
nothing calls this directly
no test coverage detected