From 2d810651154ded6e1d56e8527af662d0195ed63e Mon Sep 17 00:00:00 2001 From: James Ives Date: Thu, 28 Nov 2024 08:13:05 -0500 Subject: [PATCH] fix: gate mkpath --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.ts b/src/git.ts index 4bf30038f..c7c2b4c79 100644 --- a/src/git.ts +++ b/src/git.ts @@ -166,7 +166,7 @@ export async function deploy(action: ActionInterface): Promise { Allows the user to specify the root if '.' is provided. rsync is used to prevent file duplication. */ await execute( - `rsync -q -av --checksum --progress ${action.folderPath}/. ${ + `rsync -q -av --checksum --progress ${action.targetFolder ? '--mkpath' : ''} ${action.folderPath}/. ${ action.targetFolder ? `${temporaryDeploymentDirectory}/${action.targetFolder}` : temporaryDeploymentDirectory