Skip to content

Commit

Permalink
update if vendorprefix is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed May 23, 2024
1 parent 0b60db7 commit c079f31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
Expand Down

0 comments on commit c079f31

Please sign in to comment.