From 74adaa534e40e183e1394a0efe1d5d484fb65792 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Thu, 26 Sep 2013 01:35:29 -0700 Subject: [PATCH] bugfix. --- builder/amazon/chroot/communicator.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/builder/amazon/chroot/communicator.go b/builder/amazon/chroot/communicator.go index 9d4e4ce09..2b2e1cada 100644 --- a/builder/amazon/chroot/communicator.go +++ b/builder/amazon/chroot/communicator.go @@ -88,10 +88,9 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error } } - dstPath := filepath.Join(dst, path) - dst := filepath.Join(c.Chroot, dst) + chrootDest := filepath.Join(c.Chroot, dst, path) log.Printf("Uploading to chroot dir: %s", dst) - return copySingle(dst, fullPath, c.CopyCommand) + return copySingle(chrootDest, fullPath, c.CopyCommand) } log.Printf("Uploading directory '%s' to '%s'", src, dst)