Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
aw350m33d committed Dec 28, 2024
1 parent b4de9fe commit 5f28370
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mitre_attack/parseMitreAttackData.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ function extractTacticsAndTechniques(dataFilePaths) {
};
}

parsedData = path.join(__dirname, 'data', 'parsed');

fs.mkdirSync(parsedData, { recursive: true });

fs.writeFileSync(
path.join(__dirname, 'data', 'parsed', 'attack.json'),
path.join(parsedData, 'attack.json'),
JSON.stringify(extractTacticsAndTechniques(dataFilePaths))
);

0 comments on commit 5f28370

Please sign in to comment.