Skip to content

Add non-0 exit code on wp core check-update #46

@halfgaar

Description

@halfgaar

I have wp-cli in cron jobs to check for updates. What's missing, is a non-0 return code when an update is available. I do a bunch of string matching now, but of course, that's not very robust.

Perhaps extra command-line flags would be the best, as not to break existing scripts.

And, there could be different return codes for major or minor upgrades, to script automatic minor updates, but notify on major, for instance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions