diff --git a/cyan/index.ts b/cyan/index.ts index c07d948..9d8c244 100644 --- a/cyan/index.ts +++ b/cyan/index.ts @@ -8,7 +8,7 @@ StartTemplateWithLambda(async (i, d) => { const url = await i.text("CookieCutter Git URL"); const tmpPath = d.get("tmpPath", () => `/tmp/cookiecutter/${v4()}`); - fs.mkdirSync(tmpPath, { recursive: true }); + if (!fs.existsSync(tmpPath)) fs.mkdirSync(tmpPath, { recursive: true }); await git.clone(url, tmpPath);