Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quote the build context path value
Browse files Browse the repository at this point in the history
rm3l committed Apr 12, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e766375 commit bb7299d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/devfile/image/docker_compatible.go
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ func getShellCommand(cmdName string, image *devfile.ImageComponent, devfilePath
}
args := image.Dockerfile.Args

shell := fmt.Sprintf(`%s build -t "%s" -f "%s" %s`, cmdName, imageName, dockerfile, buildpath)
shell := fmt.Sprintf(`%s build -t "%s" -f "%s" "%s"`, cmdName, imageName, dockerfile, buildpath)
if len(args) > 0 {
shell = shell + " " + strings.Join(args, " ")
}

0 comments on commit bb7299d

Please sign in to comment.