Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added .trim() to command string.
  • Loading branch information
jdpgrailsdev committed Jul 2, 2014
commit d71d9681c700c1964e5d71d1805c9f68125ae8f3
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected File buildDockerFolderTar() {
filesToAdd.add(dockerFile);

for (String cmd : dockerFileContent) {
final Matcher matcher = ADD_PATTERN.matcher(cmd);
final Matcher matcher = ADD_PATTERN.matcher(cmd.trim());
if (matcher.find()) {
if (matcher.groupCount() != 2) {
throw new DockerException(String.format("Wrong format on line [%s]", cmd));
Expand Down