Skip to content

Commit

Permalink
Merge pull request #56 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Fix build on mac
  • Loading branch information
andyone authored Mar 24, 2023
2 parents dc76f7c + b10a888 commit 70cb7bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cli/support/support_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ func showOSInfo() {
return
}

osInfo, err := system.GetOSInfo()

if err == nil {
fmtutil.Separator(false, "OS INFO")

printInfo(12, "Name", osInfo.Name)
printInfo(12, "Version", osInfo.VersionID)
printInfo(12, "Build", osInfo.Build)
}

fmtutil.Separator(false, "SYSTEM INFO")

printInfo(7, "Name", systemInfo.OS)
printInfo(7, "Version", systemInfo.Version)
printInfo(7, "Arch", systemInfo.Arch)
printInfo(7, "Kernel", systemInfo.Kernel)
}

0 comments on commit 70cb7bf

Please sign in to comment.