No error code when app already enabled/disabled
This commit is contained in:
parent
0b37004808
commit
6c8c8a328a
|
@ -51,7 +51,6 @@ class Disable extends Command {
|
|||
}
|
||||
} else {
|
||||
$output->writeln('No such app enabled: ' . $appId);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue