From 8eda4ddc9e3959757ac5069515e2a12c28200116 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:32:44 +0100 Subject: [PATCH] IMigrationStep progress bar fix Context here: https://github.com/nextcloud/server/issues/35960 Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/Migration/ConsoleOutput.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/Migration/ConsoleOutput.php b/lib/private/Migration/ConsoleOutput.php index cf4362d3144..b8fb25e9655 100644 --- a/lib/private/Migration/ConsoleOutput.php +++ b/lib/private/Migration/ConsoleOutput.php @@ -75,11 +75,14 @@ class ConsoleOutput implements IOutput { * @param string $description */ public function advance($step = 1, $description = '') { - if (!is_null($this->progressBar)) { + if (is_null($this->progressBar)) { $this->progressBar = new ProgressBar($this->output); $this->progressBar->start(); } $this->progressBar->advance($step); + if (!is_null($description)) { + $this->output->write(" $description"); + } } public function finishProgress() { -- 2.39.5