Skip to content

Commit

Permalink
fix(core): incorrect paths in build staging rsync command
Browse files Browse the repository at this point in the history
Fixes regression in the recent experimental build staging PR.
  • Loading branch information
edvald committed Nov 30, 2020
1 parent 23975f4 commit f38d429
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/build-staging/rsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ export class BuildDirRsync extends BuildStaging {
await ensureDir(targetDir)
await ensureDir(tmpDir)

// this is so that the cygwin-based rsync client can deal with the paths
sourcePath = normalizeLocalRsyncPath(sourcePath)
targetPath = normalizeLocalRsyncPath(targetPath)

if (sourceShouldBeDirectory) {
sourcePath += "/"
}
if (targetShouldBeDirectory) {
targetPath += "/"
}

// this is so that the cygwin-based rsync client can deal with the paths
sourcePath = normalizeLocalRsyncPath(sourcePath)
targetPath = normalizeLocalRsyncPath(targetPath)

// the correct way to copy all contents of a folder is using a trailing slash and not a wildcard
sourcePath = stripWildcard(sourcePath)
targetPath = stripWildcard(targetPath)
Expand Down

0 comments on commit f38d429

Please sign in to comment.