[docker] ls -A instead of * glob for copying paths

pull/3800/head
Ben P 10 years ago
parent 3ab7db6168
commit 0d7937fce1

@ -179,7 +179,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 {

Loading…
Cancel
Save