]> source.dussan.org Git - nextcloud-server.git/commitdiff
Display notice for already enabled apps 19514/head
authorSander Ruitenbeek <s.ruitenbeek@getgoing.nl>
Mon, 17 Feb 2020 08:43:46 +0000 (08:43 +0000)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 24 Apr 2020 14:30:45 +0000 (16:30 +0200)
Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>
Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>
core/Command/App/Enable.php

index c4e2363def5606cdb11fb4c128c0b281f0b589a9..d82a71d9eb4bbaeadf511f3f7733b32c30f6f214 100644 (file)
@@ -105,6 +105,10 @@ class Enable extends Command implements CompletionAwareInterface {
                        return $group->getDisplayName();
                }, $groupIds);
 
+               if ($this->appManager->isInstalled($appId) && $groupIds === []) {
+                       $output->writeln($appId . ' already enabled');
+                       return;
+               }
 
                try {
                        /** @var Installer $installer */