Skip to content
Permalink
Browse files
fix log
  • Loading branch information
pissang committed Jul 29, 2021
1 parent ade5d06 commit 976f91d5a029d18b4449214c0f5fbb3854f947af
Showing 1 changed file with 7 additions and 2 deletions.
@@ -528,8 +528,13 @@ async function buildSpreadsheet(config) {
}

function replaceLog(log) {
readline.cursorTo(process.stdout, 0);
process.stdout.write(log);
if (process.stdout.clearLine) {
readline.cursorTo(process.stdout, 0);
process.stdout.write(log);
}
else {
console.log(log);
}
}

async function run() {

0 comments on commit 976f91d

Please sign in to comment.