Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn on delete failure, instead of hard exiting #376

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

danielbachhuber
Copy link
Member

Fixes #238

Previous behavior:

$ chmod 555 wp-content/plugins/akismet
$ wp plugin delete akismet
$ echo $?
1

New behavior:

$ chmod 555 wp-content/plugins/akismet
$ wp plugin delete akismet
Warning: The 'akismet' plugin could not be deleted.
Error: No plugins deleted.

Co-authored-by: Pascal Birchler <[email protected]>
@danielbachhuber danielbachhuber merged commit 1fe271c into main Oct 11, 2023
32 checks passed
@danielbachhuber danielbachhuber deleted the improve/warning-delete-failure branch October 11, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

plugin delete hangs when file permissions forbid the operation
2 participants