Skip to content

Commit

Permalink
Better nuclei-templates current and outdated messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vzamanillo committed Aug 31, 2020
1 parent 01b74e5 commit 3a91e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/runner/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ func (r *Runner) updateTemplates() error {
}

if version.EQ(oldVersion) {
gologger.Labelf("Latest version of nuclei-templates installed: v%s\n", oldVersion.String())
gologger.Infof("Your nuclei-templates are up to date: v%s\n", oldVersion.String())
return r.writeConfiguration(r.templatesConfig)
}

if version.GT(oldVersion) {
if !r.options.UpdateTemplates {
gologger.Labelf("You're using outdated nuclei-templates. Latest v%s\n", version.String())
gologger.Labelf("Your current nuclei-templates v%s are outdated. Latest is v%s\n", oldVersion, version.String())
return r.writeConfiguration(r.templatesConfig)
}

Expand Down

0 comments on commit 3a91e7f

Please sign in to comment.