Skip to content

Commit

Permalink
skip empty plugins (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Meijer <[email protected]>
  • Loading branch information
ameijer authored Oct 29, 2024
1 parent 4c5d648 commit 42fa6c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/test/pkg/executor/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func main() {
// for each plugin given via a flag
for _, plugin := range plugins {
log.Infof("Testing plugin: %s", plugin)
plugin = strings.TrimSpace(plugin)
if plugin == "" {
continue
}

// write the config in PLUGIN_NAME_CONFIG out to a file
envVarName := fmt.Sprintf("%s_CONFIG", strings.ReplaceAll(strings.ToUpper(plugin), "-", "_"))
Expand Down

0 comments on commit 42fa6c2

Please sign in to comment.