Skip to content

Instantly share code, notes, and snippets.

@erivello
Created July 17, 2015 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erivello/537c5ccd98b9b0c4640c to your computer and use it in GitHub Desktop.
Save erivello/537c5ccd98b9b0c4640c to your computer and use it in GitHub Desktop.
Fetch drupal's enabled modules and enable these
#!/bin/bash
enabled_modules=`cat enabled_modules.txt`
drush en $enabled_modules -y
#!/bin/bash
drush pm-list --type=Module --no-core --status=enabled | cut -d "(" -f2 | cut -d ")" -f1 | sed '1d' > enabled_modules.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment