From d27ceaf509865f9bcfa76544bb77766e5dd7fae2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 9 Nov 2013 00:47:37 -0800 Subject: [PATCH] builder/docker: remove the exit code file when we're done --- builder/docker/communicator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/docker/communicator.go b/builder/docker/communicator.go index 2576a4452..45ad0ee92 100644 --- a/builder/docker/communicator.go +++ b/builder/docker/communicator.go @@ -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