From 36ff878cbb6d3d2487a63249e33d5d95e1f70697 Mon Sep 17 00:00:00 2001 From: kchason Date: Fri, 14 Jul 2023 13:45:39 -0400 Subject: [PATCH] Switch env naming per feedback from @ehsandeep --- v2/internal/runner/options.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/v2/internal/runner/options.go b/v2/internal/runner/options.go index fae2a16462..3f2474a050 100644 --- a/v2/internal/runner/options.go +++ b/v2/internal/runner/options.go @@ -402,9 +402,9 @@ func readEnvInputVars(options *types.Options) { // custom locations. // The primary use-case is when the user wants to use custom templates only and does not want to download any // templates from the default locations or is unable to connect to the public internet. - options.PublicTemplateDisableDownload = strings.ToLower(os.Getenv("NUCLEI_TEMPLATES_PUBLIC_DISABLE_DOWNLOAD")) == "true" - options.GitHubTemplateDisableDownload = strings.ToLower(os.Getenv("NUCLEI_TEMPLATES_GITHUB_DISABLE_DOWNLOAD")) == "true" - options.GitLabTemplateDisableDownload = strings.ToLower(os.Getenv("NUCLEI_TEMPLATES_GITLAB_DISABLE_DOWNLOAD")) == "true" - options.AwsTemplateDisableDownload = strings.ToLower(os.Getenv("NUCLEI_TEMPLATES_AWS_DISABLE_DOWNLOAD")) == "true" - options.AzureTemplateDisableDownload = strings.ToLower(os.Getenv("NUCLEI_TEMPLATES_AZURE_DISABLE_DOWNLOAD")) == "true" + options.PublicTemplateDisableDownload = strings.ToLower(os.Getenv("DISABLE_NUCLEI_TEMPLATES_PUBLIC_DOWNLOAD")) == "true" + options.GitHubTemplateDisableDownload = strings.ToLower(os.Getenv("DISABLE_NUCLEI_TEMPLATES_GITHUB_DOWNLOAD")) == "true" + options.GitLabTemplateDisableDownload = strings.ToLower(os.Getenv("DISABLE_NUCLEI_TEMPLATES_GITLAB_DOWNLOAD")) == "true" + options.AwsTemplateDisableDownload = strings.ToLower(os.Getenv("DISABLE_NUCLEI_TEMPLATES_AWS_DOWNLOAD")) == "true" + options.AzureTemplateDisableDownload = strings.ToLower(os.Getenv("DISABLE_NUCLEI_TEMPLATES_AZURE_DOWNLOAD")) == "true" }