mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 01:04:00 -04:00
bugfix.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user