Escapes cp alias

Fix for #1656
This commit is contained in:
Godefroid Chapelle 2014-12-02 14:58:13 +01:00
parent e5c0bf14df
commit 075abfeeae
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func (c *Communicator) Upload(dst string, src io.Reader, fi *os.FileInfo) error
// Copy the file into place by copying the temporary file we put
// into the shared folder into the proper location in the container
cmd := &packer.RemoteCmd{
Command: fmt.Sprintf("cp %s/%s %s", c.ContainerDir,
Command: fmt.Sprintf("\cp %s/%s %s", c.ContainerDir,
filepath.Base(tempfile.Name()), dst),
}