Remove hardcoded /tmp prefix from path (#843)

Fast-follow to #842 to fix a typo
This commit is contained in:
Tessa Walsh 2025-05-28 18:46:19 -04:00 committed by GitHub
parent 52235ab21e
commit 46a02d12a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ async function collectOnlineBehavior(url: string): Promise<FileSources> {
const filename = path.basename(new URL(url).pathname);
const tmpDir = path.join(
os.tmpdir(),
`/tmp/behaviors-${crypto.randomBytes(4).toString("hex")}`,
`behaviors-${crypto.randomBytes(4).toString("hex")}`,
);
await fsp.mkdir(tmpDir, { recursive: true });
const behaviorFilepath = path.join(tmpDir, filename);