mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
distro: remove unwanted chars from os distro files
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
aa0693bdc0
commit
5edcae13b3
@ -92,9 +92,9 @@ func parseOsRelease(contents string) *Distro {
|
|||||||
|
|
||||||
switch prefix {
|
switch prefix {
|
||||||
case "ID":
|
case "ID":
|
||||||
id = value
|
id = strings.TrimSpace(value)
|
||||||
case "VERSION_ID":
|
case "VERSION_ID":
|
||||||
vers = value
|
vers = strings.TrimSpace(value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user