Merge pull request #18415 from owncloud/apps-command-returncode-successifalreadyenabled

No error code when app already enabled/disabled
This commit is contained in:
Thomas Müller 2015-08-19 10:51:12 +02:00
commit 74237a9c44
2 changed files with 0 additions and 2 deletions

View file

@ -51,7 +51,6 @@ class Disable extends Command {
}
} else {
$output->writeln('No such app enabled: ' . $appId);
return 1;
}
}
}

View file

@ -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;