X Tutup
Skip to content

occ commands give success status when apps_paths has an error #37098

@phil-davis

Description

@phil-davis

Steps to reproduce

  1. In config.php put some invalid dir in apps_paths e.g.
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/home/phil/git/owncloud/core/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/home/phil/git/owncloud/core/apps-zzz',
      'url' => '/apps-zzz',
      'writable' => true,
    ),
  ),
  1. Do some occ command:
$ php occ app:disable guests
App directory "/home/phil/git/owncloud/core/apps-zzz" not found! Please put the ownCloud apps folder in the ownCloud folder or the folder above. You can also configure the location in the config.php file.
$ echo $?
0
$ php occ user:list
App directory "/home/phil/git/owncloud/core/apps-zzz" not found! Please put the ownCloud apps folder in the ownCloud folder or the folder above. You can also configure the location in the config.php file.
$ echo $?
0

Expected behaviour

Non-zero exit status

Actual behaviour

Exit status is zero (which indicates success)

Server configuration

Current git core master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup