diff --git a/system/system_info.go b/system/system_info.go index 63fa6770..1582ebe7 100644 --- a/system/system_info.go +++ b/system/system_info.go @@ -22,7 +22,8 @@ func NewSystemInfo() *SystemInfo { var cmd *exec.Cmd switch runtime.GOOS { case "linux": - cmd = exec.Command("uname -a", arg...) + arg = append(arg, "-a") + cmd = exec.Command("lsb_release", arg...) case "darwin": cmd = exec.Command("sw_vers", arg...) default: @@ -33,7 +34,6 @@ func NewSystemInfo() *SystemInfo { for _, row := range strings.Split(raw, "\n") { parts := strings.Split(row, ":") - if len(parts) < 2 { continue }