summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-19 10:26:50 +0200
committerVincent Petry <pvince81@owncloud.com>2015-08-19 10:26:50 +0200
commit6c8c8a328abb0823a8b20e30c2ace06f2b568ea3 (patch)
treeaee3537736d3436b5d903aefd7ef7d8c20d8b71b /core/command
parent0b37004808c22792dab350eebfc763db6408b440 (diff)
downloadnextcloud-server-6c8c8a328abb0823a8b20e30c2ace06f2b568ea3.tar.gz
nextcloud-server-6c8c8a328abb0823a8b20e30c2ace06f2b568ea3.zip
No error code when app already enabled/disabled
Diffstat (limited to 'core/command')
-rw-r--r--core/command/app/disable.php1
-rw-r--r--core/command/app/enable.php1
2 files changed, 0 insertions, 2 deletions
diff --git a/core/command/app/disable.php b/core/command/app/disable.php
index fc634bb32cf..f2096448279 100644
--- a/core/command/app/disable.php
+++ b/core/command/app/disable.php
@@ -51,7 +51,6 @@ class Disable extends Command {
}
} else {
$output->writeln('No such app enabled: ' . $appId);
- return 1;
}
}
}
diff --git a/core/command/app/enable.php b/core/command/app/enable.php
index d3733f0f133..907006961dc 100644
--- a/core/command/app/enable.php
+++ b/core/command/app/enable.php
@@ -43,7 +43,6 @@ class Enable extends Command {
$appId = $input->getArgument('app-id');
if (\OC_App::isEnabled($appId)) {
$output->writeln($appId . ' is already enabled');
- return 2;
} else if (!\OC_App::getAppPath($appId)) {
$output->writeln($appId . ' not found');
return 1;