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

This commit is contained in:
Elara 2022-12-28 18:44:48 -08:00
parent db060db4b1
commit 8225f41d0e

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
},