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

Commit

Permalink
Merge pull request #4389 from nogoegst/crashreport-openbsd
Browse files Browse the repository at this point in the history
Add OpenBSD support to libmachine/crashreport
  • Loading branch information
dgageot authored Feb 12, 2018
2 parents f136d8e + db9c84d commit 2f0ad26
Showing 1 changed file with 12 additions and 0 deletions.
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)
}

0 comments on commit 2f0ad26

Please sign in to comment.