Created
July 24, 2013 11:03
-
-
Save insparrow/6069671 to your computer and use it in GitHub Desktop.
Only revert drupal features marked as 'Overridden'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IFS="," | |
FEATURES=$(drush fl | grep 'Overridden' | awk '{print $1;}' | tr "\r\n" ","); | |
for feature in $FEATURES; do | |
drush -y fr $feature; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment