Fix nil argument when -P flag is not given
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
db060db4b1
commit
8225f41d0e
4
main.go
4
main.go
@ -166,6 +166,10 @@ func main() {
|
|||||||
},
|
},
|
||||||
Before: func(c *cli.Context) error {
|
Before: func(c *cli.Context) error {
|
||||||
args := strings.Split(c.String("pm-args"), " ")
|
args := strings.Split(c.String("pm-args"), " ")
|
||||||
|
if len(args) == 1 && args[0] == "" {
|
||||||
|
args = nil
|
||||||
|
}
|
||||||
|
|
||||||
manager.Args = append(manager.Args, args...)
|
manager.Args = append(manager.Args, args...)
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user