From 9367df4a3f532cc921f0317a0418b7988933f663 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 23 Jun 2013 11:56:27 -0700 Subject: [PATCH] provisioner/shell: copy the scripts [GH-29] --- provisioner/shell/provisioner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/provisioner/shell/provisioner.go b/provisioner/shell/provisioner.go index b24a255a7..65a537055 100644 --- a/provisioner/shell/provisioner.go +++ b/provisioner/shell/provisioner.go @@ -102,6 +102,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) { scripts := make([]string, len(p.config.Scripts)) + copy(scripts, p.config.Scripts) // If we have an inline script, then turn that into a temporary // shell script and use that.