Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions engine/checks/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,6 @@ func (c Ssh) Run(teamID uint, teamIdentifier string, roundID uint, resultsChan c
checkResult.Debug = "command output'" + r.Command + "' didn't match regex '" + r.Output
response <- checkResult
return
} else {
if strings.TrimSpace(stdoutBytes.String()) != r.Output {
checkResult.Error = "command output didn't match string"
checkResult.Debug = "command output of '" + r.Command + "' didn't match string '" + r.Output + "' " + strings.TrimSpace(stdoutBytes.String())
response <- checkResult
return
}
}
} else {
if stderrBytes.Len() != 0 {
Expand Down