Last active
December 15, 2015 17:59
-
-
Save wimvds/5300543 to your computer and use it in GitHub Desktop.
Move all Drupal modules in sites/all/modules to sites/all/modules/contrib
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
#!/bin/bash | |
# First install registry_rebuild : drush dl registry_rebuild | |
# Execute the following : | |
for dir in */; do dir=${dir%*/}; if [ "custom" != "${dir}" -a "contrib" != "${dir}" ]; then mv ${dir} contrib/${dir}; fi; done | |
# Run registry_rebuild and clear all caches : drush rr && drush cc all | |
# Fingers crossed... | |
# To update your git repo afterwards, just use : git add -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment