Skip to content

Commit

Permalink
final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nomo-app committed Feb 21, 2024
1 parent ff535f5 commit 3f2f70e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/services/ssh-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export class SSHOperations {
webAssetsPath: string;
sshConfig: RawSSHConfig;
}) {
return `rsync -avz --progress ${webAssetsPath} ${sshConfig.sshHost}:${sshConfig.sshBaseDir}`;
const rsyncSourcePath = webAssetsPath + "/"; // the behavior of rsync is different with and without trailing slash!
const rsyncTargetPath = sshConfig.sshBaseDir;
return `rsync -avz --progress ${rsyncSourcePath} ${sshConfig.sshHost}:${rsyncTargetPath}`;
}

public getRemoteManifest({
Expand Down
2 changes: 1 addition & 1 deletion src/util/extract-tar-gz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function clearCache() {
const cacheOutPath = resolve(cacheOutDirectory);

if (!existsSync(cachePath)) {
mkdirSync(cachePath);
return;
}

try {
Expand Down

0 comments on commit 3f2f70e

Please sign in to comment.