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
+1 -1
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 {