Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
6188955e
Commit
6188955e
authored
8 years ago
by
Joas Schilling
Committed by
Morris Jobke
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Do not break the output when running _completion
Signed-off-by:
Joas Schilling
<
coding@schilljs.com
>
parent
5fc58713
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/Console/Application.php
+9
-5
9 additions, 5 deletions
lib/private/Console/Application.php
with
9 additions
and
5 deletions
lib/private/Console/Application.php
+
9
−
5
View file @
6188955e
...
...
@@ -88,10 +88,14 @@ class Application {
require_once
__DIR__
.
'/../../../core/register_command.php'
;
if
(
$this
->
config
->
getSystemValue
(
'installed'
,
false
))
{
if
(
\OCP\Util
::
needUpgrade
())
{
$output
->
writeln
(
"Nextcloud or one of the apps require upgrade - only a limited number of commands are available"
);
$output
->
writeln
(
"You may use your browser or the occ upgrade command to do the upgrade"
);
if
(
$input
->
getArgument
(
'command'
)
!==
'_completion'
)
{
$output
->
writeln
(
"Nextcloud or one of the apps require upgrade - only a limited number of commands are available"
);
$output
->
writeln
(
"You may use your browser or the occ upgrade command to do the upgrade"
);
}
}
elseif
(
$this
->
config
->
getSystemValue
(
'maintenance'
,
false
))
{
$output
->
writeln
(
"Nextcloud is in maintenance mode - no app have been loaded"
);
if
(
$input
->
getArgument
(
'command'
)
!==
'_completion'
)
{
$output
->
writeln
(
"Nextcloud is in maintenance mode - no apps have been loaded"
);
}
}
else
{
OC_App
::
loadApps
();
foreach
(
\OC
::
$server
->
getAppManager
()
->
getInstalledApps
()
as
$app
)
{
...
...
@@ -106,10 +110,10 @@ class Application {
}
}
}
}
else
{
}
else
if
(
$input
->
getArgument
(
'command'
)
!==
'_completion'
)
{
$output
->
writeln
(
"Nextcloud is not installed - only a limited number of commands are available"
);
}
$input
=
new
ArgvInput
();
if
(
$input
->
getFirstArgument
()
!==
'check'
)
{
$errors
=
\OC_Util
::
checkServer
(
\OC
::
$server
->
getConfig
());
if
(
!
empty
(
$errors
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment