Commit b3d76b79 authored by Jason A. Beranek's avatar Jason A. Beranek

provisioner/shell: fix provisioner to use UnixReader [GH-477]

Packer was using the original file reader when uploading, instead of the UnixReader /cc @mitchellh
parent f017fd8a
......@@ -269,7 +269,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
r = &UnixReader{Reader: r}
}
if err := comm.Upload(p.config.RemotePath, f); err != nil {
if err := comm.Upload(p.config.RemotePath, r); err != nil {
return fmt.Errorf("Error uploading script: %s", err)
}
......
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