From 5edcae13b3ed82601abf5cb679797dfde3e501c2 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 16 Jul 2020 17:19:57 -0400 Subject: [PATCH] distro: remove unwanted chars from os distro files Signed-off-by: Alfredo Deza --- imgbom/distro/identify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgbom/distro/identify.go b/imgbom/distro/identify.go index 07589962b..7070ce4ca 100644 --- a/imgbom/distro/identify.go +++ b/imgbom/distro/identify.go @@ -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) } }