This commit is contained in:
Matthew Hooker 2013-09-26 01:35:29 -07:00
parent 7740c8fed5
commit 23a331fc00
1 changed files with 2 additions and 3 deletions

View File

@ -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)