Skip to content

Commit a75e0cf

Browse files
committed
trim the end of stdout
1 parent a775133 commit a75e0cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

checks/command.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package checks
22

33
import (
44
"os/exec"
5+
"strings"
56

67
"github.com/bootdotdev/bootdev/args"
78
api "github.com/bootdotdev/bootdev/client"
@@ -22,7 +23,7 @@ func CLICommand(
2223
} else if err != nil {
2324
responses[i].ExitCode = -2
2425
}
25-
responses[i].Stdout = string(b)
26+
responses[i].Stdout = strings.TrimRight(string(b), " \n\t\r")
2627
}
2728
return responses
2829
}

0 commit comments

Comments
 (0)