From 7f984c97bd6a103cf0aa0043b4f0be2dad8848ec Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Wed, 15 Nov 2017 03:17:12 +0000 Subject: [PATCH] Remove quotes from the OS name --- gbt/cars/os/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gbt/cars/os/main.go b/gbt/cars/os/main.go index db227fa..c74a426 100644 --- a/gbt/cars/os/main.go +++ b/gbt/cars/os/main.go @@ -77,7 +77,8 @@ func getOsName() string { line := scanner.Text() if len(line) > 3 && line[:3] == "ID=" { - osName = line[3:] + osName = strings.Replace( + strings.Replace(line[3:], "\"", "", -1), "'", "", -1) } } }