зеркало из https://github.com/mozilla/mig.git
agent: gofmt env_windows.go
This commit is contained in:
Родитель
5107e3e78a
Коммит
1c02189db2
|
@ -60,7 +60,7 @@ func getSysInfo() (hostname, domain, osname, osversion string, err error) {
|
|||
}
|
||||
}()
|
||||
// get data from the systeminfo
|
||||
out, err := exec.Command("cmd","/C", "wmic.exe os get Caption, Version /format:list & wmic.exe computersystem get Name, domain /format:list").Output()
|
||||
out, err := exec.Command("cmd", "/C", "wmic.exe os get Caption, Version /format:list & wmic.exe computersystem get Name, domain /format:list").Output()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче