From c079f3170f99a562a251f90f1f8d5fedb3ad373e Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Thu, 23 May 2024 14:59:12 -0600 Subject: [PATCH] update if vendorprefix is empty --- src/cmd/run.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cmd/run.go b/src/cmd/run.go index 6603bef..0a83709 100644 --- a/src/cmd/run.go +++ b/src/cmd/run.go @@ -64,8 +64,10 @@ var runCmd = &cobra.Command{ if _, ok := setRunnerVariables[variable.Name]; !ok { if value := os.Getenv(fmt.Sprintf("%s_%s", strings.ToUpper(config.EnvPrefix), variable.Name)); value != "" { setRunnerVariables[variable.Name] = value - } else if value := os.Getenv(fmt.Sprintf("%s_%s", strings.ToUpper(config.VendorPrefix), variable.Name)); value != "" { - setRunnerVariables[variable.Name] = value + } else if config.VendorPrefix != "" { + if value := os.Getenv(fmt.Sprintf("%s_%s", strings.ToUpper(config.VendorPrefix), variable.Name)); value != "" { + setRunnerVariables[variable.Name] = value + } } } }