mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 09:47:49 +02:00
Trim new line char from Android version (#2147)
This commit is contained in:
parent
c9f3854dde
commit
85d17cbc89
@ -32,7 +32,7 @@ func GetInfo(ctx context.Context) *Info {
|
|||||||
GoOS: runtime.GOOS,
|
GoOS: runtime.GOOS,
|
||||||
Kernel: kernel,
|
Kernel: kernel,
|
||||||
Platform: "unknown",
|
Platform: "unknown",
|
||||||
OS: "android",
|
OS: "Android",
|
||||||
OSVersion: osVersion(),
|
OSVersion: osVersion(),
|
||||||
Hostname: extractDeviceName(ctx, "android"),
|
Hostname: extractDeviceName(ctx, "android"),
|
||||||
CPUs: runtime.NumCPU(),
|
CPUs: runtime.NumCPU(),
|
||||||
@ -77,5 +77,6 @@ func run(name string, arg ...string) string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("getInfo: %s", err)
|
log.Errorf("getInfo: %s", err)
|
||||||
}
|
}
|
||||||
return out.String()
|
|
||||||
|
return strings.TrimSpace(out.String())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user