builder/docker: remove the exit code file when we're done

This commit is contained in:
Mitchell Hashimoto 2013-11-09 00:47:37 -08:00
parent 2e7574e360
commit d27ceaf509
1 changed files with 1 additions and 0 deletions

View File

@ -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.
exitCodePath := outputFile.Name() + "-exit"
defer os.Remove(exitCodePath)
// 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