diff --git a/src/main.ts b/src/main.ts index 596b85a..31e8d21 100644 --- a/src/main.ts +++ b/src/main.ts @@ -22,8 +22,8 @@ let progressBar = progress.create({ total: urlsList.length }); let failedUrls: string[] = []; // Make output directory -if (!fs.existsSync(outDir)) { - fs.mkdirSync(outDir); +if (!fs.existsSync(join(__dirname, outDir))) { + fs.mkdirSync(join(__dirname, outDir)); } // Gather scans