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(