Skip to content

Commit

Permalink
Update gethostinfo_linux.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptkatz authored Oct 12, 2022
1 parent 5d12f46 commit 89d7f9e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Orca_Puppet/cli/cmdopt/listopt/gethostinfo_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ import (
"os"
"os/user"
"regexp"
"runtime"
"strings"
)

var sysType string = runtime.GOOS

// 获取操作系统信息
func GetOsName() string {
ac, err := shellopt.Cmd("cat /etc/os-release | grep PRETTY_NAME | awk -F \"[\\\"\\\"]\" '{print $2}'")
Expand Down

0 comments on commit 89d7f9e

Please sign in to comment.