I am developing my custom drush script and I am using drush_features_revert_all() function. During revert procedure this function displays confirm message "'Do you really want to continue?'" and exits if user types 'n'. So it isn't possible to run the rest part of the script.

CommentFileSizeAuthor
#1 quickfix-1696486-0.patch318 bytesChi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi’s picture

Status: Active » Needs review
FileSize
318 bytes

Just made it like drush_pm_enable()

mpotter’s picture

Status: Needs review » Reviewed & tested by the community

Seems pretty reasonable but still welcome other opinions.

hefox’s picture

Seems fine to me also. I think this has been reported before, but not with a patch. Or maybe someone mentioned it in irc.

mpotter’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Committed in 89c674f.

hefox’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

  • mpotter committed 89c674f on 8.x-3.x
    Issue #1696486 by Chi: Change aborting behavior in drush features-revert...