IMigrationStep progress bar fix

Context here: https://github.com/nextcloud/server/issues/35960

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2023-01-03 16:32:44 +01:00 committed by backportbot-nextcloud[bot]
parent 9bd966fcc5
commit 527fe27e07

View file

@ -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() {