Skip to content

Commit

Permalink
fix issue with empty extra_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminNavarro committed Jul 25, 2019
1 parent 1ada326 commit 0ae3668
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ func (configuration *ImageConfiguration) GenerateStartCommand() []string {
push("--cap-drop=" + configuration.Capabilities.Drop[idx])
}

tokens := strings.Split(configuration.ExtraFlags, " ")
for tokenIdx := range tokens {
push(tokens[tokenIdx])
}
if len(configuration.ExtraFlags) > 0 {
tokens := strings.Split(configuration.ExtraFlags, " ")
for tokenIdx := range tokens {
push(tokens[tokenIdx])
}
}

push(configuration.GetImageWithTag())

Expand Down

0 comments on commit 0ae3668

Please sign in to comment.