From 3adbd096392c4b759a888b6bab6b0326f85c295d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 8 Nov 2013 11:19:10 -0800 Subject: [PATCH] builder/amazon/chroot: fix compile error --- builder/amazon/chroot/communicator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/chroot/communicator.go b/builder/amazon/chroot/communicator.go index cf643a4ff..22becd164 100644 --- a/builder/amazon/chroot/communicator.go +++ b/builder/amazon/chroot/communicator.go @@ -92,7 +92,7 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error cmd.Env = append(cmd.Env, os.Environ()...) cmd.Env = append(cmd.Env, "LANG=C") cmd.Stderr = &stderr - err := cmd.Run() + err = cmd.Run() if err == nil { return err }