Merge pull request #5251 from hashicorp/fix_5243

fix bug introduced by 5221
This commit is contained in:
Megan Marsh 2017-08-15 13:06:17 -07:00 committed by GitHub
commit df5f946927

View File

@ -173,7 +173,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; command cp -R %s/. %s",
containerDst, containerSrc, containerDst),
}
if err := c.Start(cmd); err != nil {