diff --git a/.changeset/great-plants-fail.md b/.changeset/great-plants-fail.md new file mode 100644 index 00000000..20525f88 --- /dev/null +++ b/.changeset/great-plants-fail.md @@ -0,0 +1,5 @@ +--- +"10up-toolkit": minor +--- + +Fixing git clone path inside project command to support paths with spaces. diff --git a/packages/toolkit/scripts/project/init.js b/packages/toolkit/scripts/project/init.js index 1f51accd..d8d815e6 100644 --- a/packages/toolkit/scripts/project/init.js +++ b/packages/toolkit/scripts/project/init.js @@ -132,7 +132,7 @@ const run = async () => { process.exit(1); } - execSync(`git clone ${template} ${initPath}`); + execSync(`git clone ${template} '${initPath}'`); fs.rmdirSync(path.join(initPath, '.git'), { recursive: true }); }