diff --git a/src/deploy.go b/src/deploy.go index 0484a9f..e1328e9 100644 --- a/src/deploy.go +++ b/src/deploy.go @@ -536,8 +536,13 @@ func Deploy(options Options) { local = joinPath(options.Root, path) remote = joinPath(options.Dest, path) } else { - local = joinPath(options.Root, rel, base, path) - remote = joinPath(options.Dest, rel, base, path) + if strings.HasPrefix(base, "/") { + local = joinPath(options.Root, base, path) + remote = joinPath(options.Dest, base, path) + } else { + local = joinPath(options.Root, rel, base, path) + remote = joinPath(options.Dest, rel, base, path) + } } for strings.HasPrefix(remote, "../") {