Skip to content

Commit

Permalink
Remove quotes from the OS name
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyr committed Nov 15, 2017
1 parent aaf531e commit 7f984c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gbt/cars/os/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 7f984c9

Please sign in to comment.