From 85d17cbc897687fa7e117717179c9bb8367d8e28 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Tue, 18 Jun 2024 15:31:19 +0200 Subject: [PATCH] Trim new line char from Android version (#2147) --- client/system/info_android.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/system/info_android.go b/client/system/info_android.go index 65657f4be..7718da913 100644 --- a/client/system/info_android.go +++ b/client/system/info_android.go @@ -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()) }