From 3d9b18b087acebda839027e16cdeb55218f752ab Mon Sep 17 00:00:00 2001 From: David Gray Date: Wed, 22 Sep 2021 14:59:25 -0400 Subject: [PATCH] Trim single quotes in parseOSRelease Signed-off-by: David Gray --- source/system/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/system/system.go b/source/system/system.go index 701948ce6..44939720e 100644 --- a/source/system/system.go +++ b/source/system/system.go @@ -91,7 +91,7 @@ func parseOSRelease() (map[string]string, error) { for s.Scan() { line := s.Text() if m := re.FindStringSubmatch(line); m != nil { - release[m[1]] = strings.Trim(m[2], `"`) + release[m[1]] = strings.Trim(m[2], `"'`) } }