From 471f4f31a33e9d72e42c2a117f4e5c67ff7476f4 Mon Sep 17 00:00:00 2001 From: Tirefire <84106878+tire-fire@users.noreply.github.com> Date: Wed, 17 Dec 2025 22:36:27 -0600 Subject: [PATCH] Fix SSH UseRegex exact match bug --- engine/checks/ssh.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/engine/checks/ssh.go b/engine/checks/ssh.go index 9a9d443d..91db8e65 100644 --- a/engine/checks/ssh.go +++ b/engine/checks/ssh.go @@ -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 {