Skip to content

Commit

Permalink
Merge pull request #2761 from opossum-tool/bug/notice_generation_broken
Browse files Browse the repository at this point in the history
fix: make content name match the name in the template
  • Loading branch information
Hellgartner authored Feb 6, 2025
2 parents 8de4538 + dbe5d3a commit 7be5af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/generateNotices.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));

function generateNotices() {
const noticeDocumentFolder = join(__dirname, '..', 'notices');
const fileContent = readFileSync(join(noticeDocumentFolder, 'notices.txt'));
const noticeContent = readFileSync(join(noticeDocumentFolder, 'notices.txt'));

copyFileSync(
join(
Expand All @@ -27,7 +27,7 @@ function generateNotices() {
writeFileSync(
join(noticeDocumentFolder, 'notices.html'),
nunjucks.render(join(__dirname, 'notices.template.html'), {
fileContent,
noticeContent,
}),
);
}
Expand Down

0 comments on commit 7be5af1

Please sign in to comment.