Merge pull request #381 from blacksails/build-arg-with-equals

Don't cut everything after an equals sign
This commit is contained in:
priyawadhwa 2018-10-03 13:20:13 -07:00 committed by GitHub
commit 919df3949b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ type BuildArgs struct {
func NewBuildArgs(args []string) *BuildArgs {
argsFromOptions := make(map[string]*string)
for _, a := range args {
s := strings.Split(a, "=")
s := strings.SplitN(a, "=", 2)
if len(s) == 1 {
argsFromOptions[s[0]] = nil
} else {