From 78814198d2ee20facb090b79b89c8d754af6457c Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Tue, 29 Mar 2022 23:09:11 -0700 Subject: [PATCH] fix here as well --- core/src/messages/deployments/clone.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/messages/deployments/clone.ts b/core/src/messages/deployments/clone.ts index 486ce62a4..a4c81826e 100644 --- a/core/src/messages/deployments/clone.ts +++ b/core/src/messages/deployments/clone.ts @@ -51,8 +51,8 @@ async function cloneRepo( !server && onPull ? await execute( `cd ${DEPLOYMENT_REPO_PATH + containerName!}${ - onPull.path[0] === "/" ? "" : "/" - }${onPull.path} && ${onPull.command}` + onPull.path ? (onPull.path[0] === "/" ? "" : "/") : "" + }${onPull.path ? onPull.path : ""} && ${onPull.command}` ) : undefined; const { command, log, isError } = mergeCommandLogError(