From b3d76b79451547934e37dc1e347fbaa1aa1f07d9 Mon Sep 17 00:00:00 2001 From: "Jason A. Beranek" Date: Mon, 30 Sep 2013 23:54:54 -0500 Subject: [PATCH] provisioner/shell: fix provisioner to use UnixReader [GH-477] Packer was using the original file reader when uploading, instead of the UnixReader /cc @mitchellh --- provisioner/shell/provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/shell/provisioner.go b/provisioner/shell/provisioner.go index 3cb75187d..0dcafa7a7 100644 --- a/provisioner/shell/provisioner.go +++ b/provisioner/shell/provisioner.go @@ -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) }