Skip to content

Commit

Permalink
Switch env naming per feedback from @ehsandeep
Browse files Browse the repository at this point in the history
  • Loading branch information
kchason committed Jul 14, 2023
1 parent 221cf32 commit 36ff878
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions v2/internal/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 36ff878

Please sign in to comment.