Skip to content

Node.js based forum software built for the modern web

fix: progress bar clobbering upgrade script name

Julian Lam2adae8794966
diff --git a/src/upgrade.js b/src/upgrade.js
index 306870b234..6f9dbe4366 100644
--- a/src/upgrade.js
+++ b/src/upgrade.js
@@ -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