Skip to content

Commit 7f984c9

Browse files
committed
Remove quotes from the OS name
1 parent aaf531e commit 7f984c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gbt/cars/os/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ func getOsName() string {
7777
line := scanner.Text()
7878

7979
if len(line) > 3 && line[:3] == "ID=" {
80-
osName = line[3:]
80+
osName = strings.Replace(
81+
strings.Replace(line[3:], "\"", "", -1), "'", "", -1)
8182
}
8283
}
8384
}

0 commit comments

Comments
 (0)