Commit 23a331fc authored by Matthew Hooker's avatar Matthew Hooker

bugfix.

parent 7740c8fe
...@@ -88,10 +88,9 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error ...@@ -88,10 +88,9 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error
} }
} }
dstPath := filepath.Join(dst, path) chrootDest := filepath.Join(c.Chroot, dst, path)
dst := filepath.Join(c.Chroot, dst)
log.Printf("Uploading to chroot dir: %s", dst) 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) log.Printf("Uploading directory '%s' to '%s'", src, dst)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment