Skip to content

Commit 89d7f9e

Browse files
authored
Update gethostinfo_linux.go
1 parent 5d12f46 commit 89d7f9e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Orca_Puppet/cli/cmdopt/listopt/gethostinfo_linux.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ import (
66
"os"
77
"os/user"
88
"regexp"
9-
"runtime"
109
"strings"
1110
)
1211

13-
var sysType string = runtime.GOOS
14-
1512
// 获取操作系统信息
1613
func GetOsName() string {
1714
ac, err := shellopt.Cmd("cat /etc/os-release | grep PRETTY_NAME | awk -F \"[\\\"\\\"]\" '{print $2}'")

0 commit comments

Comments
 (0)