diff --git a/scripts/download.js b/scripts/download.js index 5e59be4..ae49d94 100644 --- a/scripts/download.js +++ b/scripts/download.js @@ -1,12 +1,8 @@ const fs = require('fs'); -const path = require('path'); const argv = process.argv.slice(2); -console.log('«6» /ChatGPT/scripts/download.js ~> ', argv[0]); - - -function init() { +async function init() { const content = fs.readFileSync('README.md', 'utf8').split('\n'); const startRe = //; const endRe = //; @@ -27,4 +23,4 @@ function init() { fs.writeFileSync('README.md', content.join('\n'), 'utf8'); } -init(); \ No newline at end of file +init().catch(console.error); \ No newline at end of file