Remove trailing \n
This commit is contained in:
parent
d3410c281a
commit
1295fb86f6
@ -199,7 +199,7 @@ func getFreeBSDVersion() (FreeBSDVersion, error) {
|
||||
if err != nil {
|
||||
return version, err
|
||||
}
|
||||
version.flavor = re.FindStringSubmatch(out)[4]
|
||||
version.flavor = strings.Trim(re.FindStringSubmatch(out)[4], "\n")
|
||||
|
||||
// Skip the 'p' starting patch level
|
||||
if len(re.FindStringSubmatch(out)[6]) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user