Skip to content

Commit

Permalink
Merge pull request #799 from mittwald/bugfix/fix-wrongly-evaluated-fl…
Browse files Browse the repository at this point in the history
…ag-name

Fix wrongly evaluated flag name in "app upload|download"
  • Loading branch information
martin-helmich authored Sep 17, 2024
2 parents b90a99a + 3803396 commit d7acb49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/resources/app/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface AppInstallationSyncFlags {
exclude: string[];
"dry-run": boolean;
delete: boolean;
"sub-directory"?: string;
"remote-sub-directory"?: string;
}

export const appInstallationSyncFlags = (direction: "upload" | "download") => ({
Expand Down Expand Up @@ -71,7 +71,7 @@ export async function filterFileToRsyncFlagsIfPresent(
*/
export function buildRsyncConnectionString(
{ host, directory, user }: SSHConnectionData,
{ "sub-directory": subDirectory }: AppInstallationSyncFlags,
{ "remote-sub-directory": subDirectory }: AppInstallationSyncFlags,
): string {
if (subDirectory) {
directory = path.join(directory, subDirectory).replace(/\/$/, "");
Expand Down

0 comments on commit d7acb49

Please sign in to comment.