fix(cli): quotify temp path in deploy command (#6197)

This commit is contained in:
Joshua Chen 2021-12-26 11:25:24 +08:00 committed by GitHub
parent 2cc89e502f
commit c7e6409add
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 .');