diff --git a/utils/ssh/sshcmd.go b/utils/ssh/sshcmd.go index 092b148233d..bf7e13093d6 100644 --- a/utils/ssh/sshcmd.go +++ b/utils/ssh/sshcmd.go @@ -162,6 +162,7 @@ func (s *SSH) CmdToString(host net.IP, env map[string]string, cmd, split string) return str, err } if data != nil { + str = strings.ReplaceAll(str, "\r", split) str = strings.ReplaceAll(str, "\r\n", split) str = strings.ReplaceAll(str, "\n", split) return str, nil