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

Packer was using the original file reader when uploading, instead of the UnixReader /cc @mitchellh
This commit is contained in:
Jason A. Beranek 2013-09-30 23:54:54 -05:00
parent f017fd8af9
commit b3d76b7945
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
r = &UnixReader{Reader: r} 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) return fmt.Errorf("Error uploading script: %s", err)
} }