diff --git a/works.go b/works.go index 4bba8b2..30aed6d 100644 --- a/works.go +++ b/works.go @@ -481,10 +481,15 @@ func declareAPIAuthWorksRoutes(router *gin.RouterGroup) { } keeptLogs := []*drone.Line{} - for nline, line := range result { + firstCmdShown := false + for _, line := range result { // Infos about image, skip - if nline < 3 { - continue + if !firstCmdShown { + if strings.HasPrefix(line.Message, "+ ") { + firstCmdShown = true + } else { + continue + } } if strings.HasPrefix(line.Message, "+ export GRADE") { continue