Skip to content

Commit

Permalink
Update runtimeVersion to report first line only
Browse files Browse the repository at this point in the history
  • Loading branch information
123456890987654321 authored and navidys committed Jan 26, 2025
1 parent 8f21f5d commit 9b46b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdcs/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func SystemInfo() (System, error) {
func (r reportInfo) runtimeVersion() string {
runtime := strings.Split(r.Host.OCIRuntime.Version, ":")[0]
runtime = strings.ReplaceAll(runtime, "commit", "")
runtime = strings.Trim(runtime, "\n")
runtime = strings.Split(runtime, "\n")[0]

return runtime
}
Expand Down

0 comments on commit 9b46b02

Please sign in to comment.