Skip to content

Commit

Permalink
Use random dir name
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Kreymer <[email protected]>
  • Loading branch information
tw4l and ikreymer authored Nov 11, 2024
1 parent 957a5fc commit 6616497
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/file_reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ async function collectGitBehaviors(gitUrl: string): Promise<FileSources> {
const relPath = params.get("path") || "";
const urlStripped = url.split("?")[0];

const timestamp = Date.now();
const tmpDir = `/tmp/behaviors-repo-${timestamp}`;
const tmpDir = `/tmp/behaviors-repo-${crypto.randomBytes(4).toString("hex")}`;

let cloneCommand = "git clone ";
if (branch) {
Expand Down

0 comments on commit 6616497

Please sign in to comment.