Trim new line char from Android version (#2147)

This commit is contained in:
Zoltan Papp 2024-06-18 15:31:19 +02:00 committed by GitHub
parent c9f3854dde
commit 85d17cbc89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ func GetInfo(ctx context.Context) *Info {
GoOS: runtime.GOOS,
Kernel: kernel,
Platform: "unknown",
OS: "android",
OS: "Android",
OSVersion: osVersion(),
Hostname: extractDeviceName(ctx, "android"),
CPUs: runtime.NumCPU(),
@ -77,5 +77,6 @@ func run(name string, arg ...string) string {
if err != nil {
log.Errorf("getInfo: %s", err)
}
return out.String()
return strings.TrimSpace(out.String())
}