Skip to content

Instantly share code, notes, and snippets.

@yoodame
Created January 10, 2014 16:37
Show Gist options
  • Select an option

  • Save yoodame/8357640 to your computer and use it in GitHub Desktop.

Select an option

Save yoodame/8357640 to your computer and use it in GitHub Desktop.
drupal versions
#!/bin/bash
# Site URI
echo $(drush @uccd.prod status | grep 'Site URI') > uccd.versions
echo -e "\n\n" >> uccd.versions
# Versions
uccd=$(drush @uccd.prod pmi)
echo "$uccd" >> uccd.versions
# Drupal Version
echo -e "\n\n\nExtension : drupal\nProject : drupal\nType : core\nTitle : Drupal\nStatus : enabled" >> uccd.versions
uccd=$(drush @uccd.prod status | grep 'Drupal version')
echo ${uccd/Drupal version/Version} >> uccd.versions
echo `php versions.php` > versions.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment