Skip to content

Commit 70cb7bf

Browse files
authored
Merge pull request #56 from essentialkaos/develop
Fix build on mac
2 parents dc76f7c + b10a888 commit 70cb7bf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cli/support/support_darwin.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,19 @@ func showOSInfo() {
2222
return
2323
}
2424

25+
osInfo, err := system.GetOSInfo()
26+
27+
if err == nil {
28+
fmtutil.Separator(false, "OS INFO")
29+
30+
printInfo(12, "Name", osInfo.Name)
31+
printInfo(12, "Version", osInfo.VersionID)
32+
printInfo(12, "Build", osInfo.Build)
33+
}
34+
2535
fmtutil.Separator(false, "SYSTEM INFO")
2636

2737
printInfo(7, "Name", systemInfo.OS)
28-
printInfo(7, "Version", systemInfo.Version)
2938
printInfo(7, "Arch", systemInfo.Arch)
3039
printInfo(7, "Kernel", systemInfo.Kernel)
3140
}

0 commit comments

Comments
 (0)