From 17ee85eeffbbf150ff7c1d651ca3441eb37d79d0 Mon Sep 17 00:00:00 2001 From: lencx Date: Sat, 10 Dec 2022 12:20:40 +0800 Subject: [PATCH] chore: download --- scripts/download.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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