Skip to content

Commit

Permalink
fix: not checking if tmp path exist before cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Nov 14, 2023
1 parent 86d721e commit 313ba2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyan/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 313ba2f

Please sign in to comment.