Fix for template directory location override
@@ -127,7 +127,7 @@ func (r *Runner) updateTemplates() error {
}
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")
// Use custom location if user has given a template directory
