Commit 075abfee authored by Godefroid Chapelle's avatar Godefroid Chapelle

Escapes cp alias

Fix for #1656
parent e5c0bf14
......@@ -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),
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment