Remove script containing Win-Shell inline commands from local tmp when done
This commit is contained in:
parent
b9ab2c8048
commit
7cf31060eb
|
@ -190,6 +190,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…
Reference in New Issue