Commit 9367df4a authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

provisioner/shell: copy the scripts [GH-29]

parent a93668be
...@@ -102,6 +102,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { ...@@ -102,6 +102,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) { func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) {
scripts := make([]string, len(p.config.Scripts)) scripts := make([]string, len(p.config.Scripts))
copy(scripts, p.config.Scripts)
// If we have an inline script, then turn that into a temporary // If we have an inline script, then turn that into a temporary
// shell script and use that. // shell script and use that.
......
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