Skip to content

Instantly share code, notes, and snippets.

@alvar0hurtad0
Created October 27, 2014 08:09
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 alvar0hurtad0/4b9f78f5e2ec48e1b9fe to your computer and use it in GitHub Desktop.
Save alvar0hurtad0/4b9f78f5e2ec48e1b9fe to your computer and use it in GitHub Desktop.
SITES=$(drush sa | grep \.pro)
for site in $(echo $SITES)
do
echo ------------------ $site -------------------------
drush $site status --fields=drupal-version
DRUPAL_PATH = echo $site status --fields=root | cut -d':' -f 2
drush $site ssh "cd $DRUPAL_PATH && git status"
drush $site drupalgeddon-test
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment