mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-24 17:13:30 +01: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,
|
||||
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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user