mirror of
https://github.com/kidoman/embd
synced 2025-04-10 08:32:12 +02:00
remove trailing white space
This commit is contained in:
parent
624ce1bb16
commit
1ebbe540a5
@ -22,7 +22,7 @@ func execOutput(name string, arg ...string) (output string, err error) {
|
|||||||
if out, err = exec.Command(name, arg...).Output(); err != nil {
|
if out, err = exec.Command(name, arg...).Output(); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
output = string(out)
|
output = strings.TrimSpace(string(out))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,14 +7,6 @@ func TestKernelVersionParse(t *testing.T) {
|
|||||||
versionStr string
|
versionStr string
|
||||||
major, minor, patch int
|
major, minor, patch int
|
||||||
}{
|
}{
|
||||||
{
|
|
||||||
"3.8",
|
|
||||||
3, 8, 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"3.7",
|
|
||||||
3, 7, 0,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"3.8.2",
|
"3.8.2",
|
||||||
3, 8, 2,
|
3, 8, 2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user