Skip to content

Commit 57fb973

Browse files
committed
Merge pull request docker-java#23 from abhijeet-devops/upstream
Adding <space> after ADD command to not to confuse with other non-docker commands
2 parents 7b3763f + 29379a9 commit 57fb973

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/kpelykh/docker/client/DockerClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ public ClientResponse build(File dockerFolder, String tag) throws DockerExceptio
643643
FileUtils.copyFileToDirectory(dockerFile, tmpDockerContextFolder);
644644

645645
for (String cmd : dockerFileContent) {
646-
if (StringUtils.startsWithIgnoreCase(cmd.trim(), "ADD")) {
646+
if (StringUtils.startsWithIgnoreCase(cmd.trim(), "ADD ")) {
647647
String addArgs[] = StringUtils.split(cmd, " \t");
648648
if (addArgs.length != 3) {
649649
throw new DockerException(String.format("Wrong format on line [%s]", cmd));

0 commit comments

Comments
 (0)