Skip to content

Commit

Permalink
#150 clean end of line only
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 3, 2023
1 parent 526224c commit b4b1c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mvnw.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ function stop() {
* Prints mvnw execution status.
*/
function print() {
readline.clearLine(process.stdout);
const duration = Date.now() - beginning;
/**
* Recursively calculates number of files under a directory.
Expand Down Expand Up @@ -161,8 +160,9 @@ function print() {
elapsed = `${Math.ceil(duration / 3600000)}min`;
}
process.stdout.write(
colors.yellow(`[${phase}] ${elapsed}; ${count(target, 0)} files generated...`)
colors.yellow(`[${phase}] ${elapsed}; ${count(target, 0)} files generated so far...`)
);
readline.clearLine(process.stdout, 1);
readline.cursorTo(process.stdout, 0);
}

0 comments on commit b4b1c7f

Please sign in to comment.