浏览代码

Don't explicitly rm before snapshot

Otherwise it removes the .git folders. Let the emptyDirectory logic kick in instead.
Loris Leiva 1 年之前
父节点
当前提交
8e2ffa9c71
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      scripts/snapshot.mjs

+ 0 - 6
scripts/snapshot.mjs

@@ -30,12 +30,6 @@ for (const projectName of projects) {
   // Go the submodules directory before creating each project.
   cd(projectsDirectory);
 
-  // Remove the project if it already exists.
-  const projectExists = fs.existsSync(projectName);
-  if (projectExists) {
-    fs.rmSync(projectName, { recursive: true, force: true });
-  }
-
   // Log project start.
   echo(chalk.blue(chalk.bold(`${projectName}:`)));