Skip to content

Commit

Permalink
trim the end of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsdev0 committed May 8, 2024
1 parent a775133 commit a75e0cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checks/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package checks

import (
"os/exec"
"strings"

"github.com/bootdotdev/bootdev/args"
api "github.com/bootdotdev/bootdev/client"
Expand All @@ -22,7 +23,7 @@ func CLICommand(
} else if err != nil {
responses[i].ExitCode = -2
}
responses[i].Stdout = string(b)
responses[i].Stdout = strings.TrimRight(string(b), " \n\t\r")
}
return responses
}

0 comments on commit a75e0cf

Please # to comment.