diff --git a/package.json b/package.json
index 079fbce..9be39e6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "boilerplate-creator",
- "version": "3.0.4",
+ "version": "3.0.5",
"main": "index.js",
"author": {
"name": "ouyang-chao",
diff --git a/src/main.js b/src/main.js
index 2758842..59e19fb 100644
--- a/src/main.js
+++ b/src/main.js
@@ -191,9 +191,9 @@ const main = async function () {
await execAsync(`git remote add origin ${templateSource}`);
await execAsync('git config core.sparseCheckout true');
// only check specific folder
- await execAsync(`echo templates / ${options.template} >> .git / info / sparse - checkout`);
+ await execAsync(`echo templates/${options.template} >> .git/info/sparse - checkout`);
await execAsync('git pull --depth=1 origin master');
- await fsex.copy(`templates / ${options.template} / `, './');
+ await fsex.copy(`templates/${options.template}/`, './');
if (options.auto) {
spinner.text = chalk.magentaBright('project initialized.');
spinner.succeed();