Better nuclei-templates current and outdated messages

dev
Víctor Zamanillo 2020-08-31 22:31:19 +02:00
parent 01b74e51ec
commit 3a91e7fc5c
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}