]> source.dussan.org Git - nextcloud-server.git/commitdiff
IMigrationStep progress bar fix 35964/head
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>
Tue, 3 Jan 2023 15:32:44 +0000 (16:32 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Jan 2023 15:32:44 +0000 (16:32 +0100)
Context here: https://github.com/nextcloud/server/issues/35960

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
lib/private/Migration/ConsoleOutput.php

index cf4362d314440fda0f8f494f82b6be8fa88bc0df..b8fb25e9655492b40938991b4f98a62f89390420 100644 (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() {