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:
parent
0d60c8356c
commit
53c1a7938c
@ -20,11 +20,11 @@ func NewSystemInfo() *SystemInfo {
|
||||
|
||||
switch runtime.GOOS {
|
||||
case "linux":
|
||||
cmd := exec.Command("lsb_release -a", arg...)
|
||||
cmd := exec.Command("uname -a", arg...)
|
||||
case "darwin":
|
||||
cmd := exec.Command("sw_vers", arg...)
|
||||
default:
|
||||
return ""
|
||||
cmd := exec.Command("sw_vers", arg...)
|
||||
}
|
||||
|
||||
raw := wtf.ExecuteCommand(cmd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user