1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Update system_info.go

This commit is contained in:
deltax 2018-06-01 17:57:41 +02:00 committed by GitHub
parent 0d60c8356c
commit 53c1a7938c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,11 +20,11 @@ func NewSystemInfo() *SystemInfo {
switch runtime.GOOS { switch runtime.GOOS {
case "linux": case "linux":
cmd := exec.Command("lsb_release -a", arg...) cmd := exec.Command("uname -a", arg...)
case "darwin": case "darwin":
cmd := exec.Command("sw_vers", arg...) cmd := exec.Command("sw_vers", arg...)
default: default:
return "" cmd := exec.Command("sw_vers", arg...)
} }
raw := wtf.ExecuteCommand(cmd) raw := wtf.ExecuteCommand(cmd)