diff --git a/lib/controller/service-controller.coffee b/lib/controller/service-controller.coffee index c0217b2..da60f7f 100644 --- a/lib/controller/service-controller.coffee +++ b/lib/controller/service-controller.coffee @@ -56,7 +56,7 @@ module.exports = ServiceController = else src = obj + (if fs.isDirectorySync obj then path.sep else '') dst = @genRemoteString config.remote.user, config.remote.host, - if fs.isDirectorySync obj then path.join config.remote.path, relativePath else path.dirname (path.join config.remote.path, relativePath) + if fs.isDirectorySync obj then path.join config.remote.path, relativePath else (path.dirname (path.join config.remote.path, relativePath)) + path.sep when 'down' if config.behaviour?.alwaysSyncAll is true