Merge pull request #3800 from benwtr/issue-3142-match-dotfiles-docker-communicator

Fix file provisioner dotfile matching w/ docker builder
This commit is contained in:
Rickard von Essen
2016-09-20 12:25:37 +02:00
committed by GitHub
+1 -1
View File
@@ -169,7 +169,7 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error
// Make the directory, then copy into it
cmd := &packer.RemoteCmd{
Command: fmt.Sprintf("set -e; mkdir -p %s; command cp -R %s/* %s",
Command: fmt.Sprintf("set -e; mkdir -p %s; cd %s; command cp -R `ls -A .` %s",
containerDst, containerSrc, containerDst),
}
if err := c.Start(cmd); err != nil {