mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
fix: progress bar clobbering upgrade script name
This commit is contained in:
@@ -170,6 +170,11 @@ Upgrade.process = async function (files, skipCount) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Upgrade.incrementProgress = function (value) {
|
Upgrade.incrementProgress = function (value) {
|
||||||
|
// Newline on first invocation
|
||||||
|
if (this.current === 0) {
|
||||||
|
process.stdout.write('\n');
|
||||||
|
}
|
||||||
|
|
||||||
this.current += value || 1;
|
this.current += value || 1;
|
||||||
|
|
||||||
// Redraw the progress bar every 100 units
|
// Redraw the progress bar every 100 units
|
||||||
|
|||||||
Reference in New Issue
Block a user