From 008889331058d514a8b69e86e3bb121b5ee1ba5f Mon Sep 17 00:00:00 2001 From: Ice3man543 Date: Wed, 25 Aug 2021 18:24:10 +0530 Subject: [PATCH] Fix for template directory location override --- v2/internal/runner/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/internal/runner/update.go b/v2/internal/runner/update.go index 29014641d..c813e7e84 100644 --- a/v2/internal/runner/update.go +++ b/v2/internal/runner/update.go @@ -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