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

pull/919/head
Mitchell Hashimoto 13 years ago
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.
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

Loading…
Cancel
Save