mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
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:
parent
9bd966fcc5
commit
527fe27e07
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