From c7e6409add25472e75e99626c590b50ba51a2fa7 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sun, 26 Dec 2021 11:25:24 +0800 Subject: [PATCH] fix(cli): quotify temp path in deploy command (#6197) --- packages/docusaurus/src/commands/deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/src/commands/deploy.ts b/packages/docusaurus/src/commands/deploy.ts index 70c1f5ecfd..0a1707ddf7 100644 --- a/packages/docusaurus/src/commands/deploy.ts +++ b/packages/docusaurus/src/commands/deploy.ts @@ -223,7 +223,7 @@ You can also set the deploymentBranch property in docusaurus.config.js .`); // directory, check out a clean deployment branch and add remote. if ( shellExecLog( - `git clone --depth 1 --branch ${deploymentBranch} ${deploymentRepoURL} ${toPath}`, + `git clone --depth 1 --branch ${deploymentBranch} ${deploymentRepoURL} "${toPath}"`, ).code === 0 ) { shellExecLog('git rm -rf .');