fix: split arguments to ensure they get parsed properly

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-08-30 16:05:10 -04:00
1 parent 8126c63d6e
commit 31ab2f97f6
1 file changed
+2 -2
+2 -2
View File
@@ -197,7 +197,7 @@ func executeScript(appName string, imageTag string, phase string) error {
dockerfileEntrypoint, _ = getEntrypointFromImage(image) dockerfileEntrypoint, _ = getEntrypointFromImage(image)
} }
if dockerfileEntrypoint != "" { if dockerfileEntrypoint != "" {
commitArgs = append(commitArgs, fmt.Sprintf("--change='%s'", dockerfileEntrypoint)) commitArgs = append(commitArgs, "--change", dockerfileEntrypoint)
} }
dockerfileCommand, _ := common.ConfigGet(appName, "DOKKU_DOCKERFILE_CMD", "") dockerfileCommand, _ := common.ConfigGet(appName, "DOKKU_DOCKERFILE_CMD", "")
@@ -205,7 +205,7 @@ func executeScript(appName string, imageTag string, phase string) error {
dockerfileCommand, _ = getCommandFromImage(image) dockerfileCommand, _ = getCommandFromImage(image)
} }
if dockerfileCommand != "" { if dockerfileCommand != "" {
commitArgs = append(commitArgs, fmt.Sprintf("--change='%s'", dockerfileCommand)) commitArgs = append(commitArgs, "--change", dockerfileCommand)
} }
} }