Skip to content

Commit

Permalink
fix: progress bar clobbering upgrade script name
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 14, 2020
1 parent ac75c9a commit 2adae87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/upgrade.js
Expand Up @@ -170,6 +170,11 @@ Upgrade.process = async function (files, skipCount) {
};

Upgrade.incrementProgress = function (value) {
// Newline on first invocation
if (this.current === 0) {
process.stdout.write('\n');
}

this.current += value || 1;

// Redraw the progress bar every 100 units
Expand Down

0 comments on commit 2adae87

Please sign in to comment.