fix: progress bar clobbering upgrade script name

This commit is contained in:
Julian Lam
2020-08-14 12:21:38 -04:00
parent ac75c9a052
commit 2adae87949

View File

@@ -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