Skip to content

Commit

Permalink
Merge pull request #36102 from nextcloud/backport/35964/stable25
Browse files Browse the repository at this point in the history
[stable25] IMigrationStep progress bar fix
  • Loading branch information
blizzz authored Feb 7, 2023
2 parents fd96473 + 527fe27 commit 080de50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/Migration/ConsoleOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,14 @@ public function startProgress($max = 0) {
* @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() {
Expand Down

0 comments on commit 080de50

Please sign in to comment.