Skip to content

Commit

Permalink
creating outputs dir if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
BatMiles committed Sep 23, 2024
1 parent 4a636fb commit 8672cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8672cac

Please sign in to comment.