Skip to content

Commit

Permalink
Merge pull request #35964 from nextcloud/IMigrationStep-fix
Browse files Browse the repository at this point in the history
IMigrationStep progress bar fix
  • Loading branch information
PVince81 authored Jan 10, 2023
2 parents 32e691f + 8eda4dd commit 0c37d05
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 0c37d05

Please sign in to comment.