builder/docker: remove the exit code file when we're done
This commit is contained in:
parent
2e7574e360
commit
d27ceaf509
@ -36,6 +36,7 @@ func (c *Communicator) Start(remote *packer.RemoteCmd) error {
|
|||||||
|
|
||||||
// This file will store the exit code of the command once it is complete.
|
// This file will store the exit code of the command once it is complete.
|
||||||
exitCodePath := outputFile.Name() + "-exit"
|
exitCodePath := outputFile.Name() + "-exit"
|
||||||
|
defer os.Remove(exitCodePath)
|
||||||
|
|
||||||
// Modify the remote command so that all the output of the commands
|
// Modify the remote command so that all the output of the commands
|
||||||
// go to a single file and so that the exit code is redirected to
|
// go to a single file and so that the exit code is redirected to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user