XF 2.2 xf:addon-upgrade -s option handling non existent addons

mm-tech

New member
Hi,

The -s option of the command xf:addon-upgrade skips addons that are not installed, cannot be upgraded, or are disabled.

Silently skipping non-upgradable addons is normal application behaviour, but trying to upgrade a nonexisting plugin is not usually expected.

It should log a warning or exit with a special exit code in my humble opinion.

This way, skipping due to no available updates and a bug in a upgrade script (like a typo in the addon id or trying to upgrade a no longer installed addon) can be handled differently.

Or is there another option which fits my use-case better?
 
Top Bottom