provisioner/shell: copy the scripts [GH-29]
This commit is contained in:
parent
a93668bed3
commit
9367df4a3f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue