mirror of
https://github.com/nextcloud/server.git
synced 2026-03-31 14:47:35 -04:00
Merge pull request #36102 from nextcloud/backport/35964/stable25
[stable25] IMigrationStep progress bar fix
This commit is contained in:
commit
080de5058b
1 changed files with 4 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue