From 3df60f7d68bede6ad0315490e1e69b4907269a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Tue, 18 Jun 2024 14:20:08 +0200 Subject: [PATCH] Trim new line char from Android version --- 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 65657f4be8d..7718da9139e 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()) }