distro: remove unwanted chars from os distro files

Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
Alfredo Deza 2020-07-16 17:19:57 -04:00
parent aa0693bdc0
commit 5edcae13b3

View File

@ -92,9 +92,9 @@ func parseOsRelease(contents string) *Distro {
switch prefix {
case "ID":
id = value
id = strings.TrimSpace(value)
case "VERSION_ID":
vers = value
vers = strings.TrimSpace(value)
}
}