Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Add OpenBSD support to libmachine/crashreport #4389

Merged
merged 1 commit into from
Feb 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add OpenBSD support to libmachine/crashreport
Signed-off-by: Ivan Markin <sw@nogoegst.net>
  • Loading branch information
unkaktus committed Feb 10, 2018
commit db9c84d5baffcfbf11041a4f037841cc35a1cd0f
12 changes: 12 additions & 0 deletions libmachine/crashreport/os_openbsd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package crashreport

import "os/exec"

func localOSVersion() string {
command := exec.Command("uname", "-r")
output, err := command.Output()
if err != nil {
return ""
}
return string(output)
}