mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2024-12-23 07:02:16 +00:00
Update mkbsd.js
This commit is contained in:
parent
9b1264c54a
commit
0c038b9f67
2
mkbsd.js
2
mkbsd.js
@ -26,7 +26,7 @@ async function main() {
|
|||||||
throw new Error('⛔ JSON does not have a "data" property at its root.');
|
throw new Error('⛔ JSON does not have a "data" property at its root.');
|
||||||
}
|
}
|
||||||
|
|
||||||
const downloadDir = path.join(__dirname, 'downloads-1');
|
const downloadDir = path.join(__dirname, 'downloads');
|
||||||
if (!fs.existsSync(downloadDir)) {
|
if (!fs.existsSync(downloadDir)) {
|
||||||
fs.mkdirSync(downloadDir);
|
fs.mkdirSync(downloadDir);
|
||||||
console.info(`📁 Created directory: ${downloadDir}`);
|
console.info(`📁 Created directory: ${downloadDir}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user