Fix for template directory location override

dev
Ice3man543 2021-08-25 18:24:10 +05:30
parent 63bc417398
commit 0088893310
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (r *Runner) updateTemplates() error {
} }
ctx := context.Background() ctx := context.Background()
if r.templatesConfig.CurrentVersion == "" || (r.options.TemplatesDirectory != "" && r.templatesConfig.TemplatesDirectory != r.options.TemplatesDirectory) { if r.templatesConfig.CurrentVersion == "" {
gologger.Info().Msgf("nuclei-templates are not installed, installing...\n") gologger.Info().Msgf("nuclei-templates are not installed, installing...\n")
// Use custom location if user has given a template directory // Use custom location if user has given a template directory