Remove script containing PowerShell inline commands from local tmp when done

pull/6199/head
DanHam 8 years ago
parent 2300b55a62
commit b9ab2c8048
No known key found for this signature in database
GPG Key ID: 58E79AEDD6AA987E

@ -269,6 +269,8 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
ui.Error(fmt.Sprintf("Unable to extract inline scripts into a file: %s", err))
}
scripts = append(scripts, temp)
// Remove temp script containing the inline commands when done
defer os.Remove(temp)
}
for _, path := range scripts {

Loading…
Cancel
Save