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
28cabb29de
commit
ed855d9227
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user