From: Sander Ruitenbeek Date: Mon, 17 Feb 2020 08:43:46 +0000 (+0000) Subject: Display notice for already enabled apps X-Git-Tag: v19.0.0beta6~29^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F19514%2Fhead;p=nextcloud-server.git Display notice for already enabled apps Signed-off-by: Sander Ruitenbeek Signed-off-by: Sander Ruitenbeek --- diff --git a/core/Command/App/Enable.php b/core/Command/App/Enable.php index c4e2363def5..d82a71d9eb4 100644 --- a/core/Command/App/Enable.php +++ b/core/Command/App/Enable.php @@ -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 */