bugfix.
This commit is contained in:
parent
7740c8fed5
commit
23a331fc00
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue