summaryrefslogtreecommitdiff
path: root/pkg/platform/architecture_freebsd.go
blob: 06dc9fe01be8fd3599d1b6fd07957904e8a873a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package platform

import (
	"os/exec"
)

// runtimeArchitecture get the name of the current architecture (x86, x86_64, …)
func runtimeArchitecture() (string, error) {
	cmd := exec.Command("uname", "-m")
	machine, err := cmd.Output()
	if err != nil {
		return "", err
	}
	return string(machine), nil
}