We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a0454d commit b3b2279Copy full SHA for b3b2279
arduino-ide-extension/scripts/compose-changelog.js
@@ -27,7 +27,12 @@
27
return acc + `# ${item.name}\n\n${body}\n\n---\n\n`;
28
}, '');
29
30
- const changelogFile = path.resolve(process.argv[process.argv.length - 1]);
+ const args = process.argv.slice(2)
31
+ if (args.length == 0) {
32
+ console.error("Missing argument to destination file")
33
+ process.exit(1)
34
+ }
35
+ const changelogFile = path.resolve(args[0]);
36
37
await fs.writeFile(
38
changelogFile,
0 commit comments