mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +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) {
|
||||
// Newline on first invocation
|
||||
if (this.current === 0) {
|
||||
process.stdout.write('\n');
|
||||
}
|
||||
|
||||
this.current += value || 1;
|
||||
|
||||
// Redraw the progress bar every 100 units
|
||||
|
||||
Reference in New Issue
Block a user