backticks instead of $() for csh compatibility

This commit is contained in:
Ben P 2016-08-11 11:27:56 -07:00
parent 0d7937fce1
commit 8ecbbe9037

View File

@ -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; cd %s; command cp -R $(ls -A .) %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 {