Fix nil argument when -P flag is not given
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Arsen Musayelyan 2022-12-28 18:44:48 -08:00
parent db060db4b1
commit 8225f41d0e
1 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,10 @@ func main() {
},
Before: func(c *cli.Context) error {
args := strings.Split(c.String("pm-args"), " ")
if len(args) == 1 && args[0] == "" {
args = nil
}
manager.Args = append(manager.Args, args...)
return nil
},