Created
April 11, 2011 00:35
-
-
Save brockboland/912901 to your computer and use it in GitHub Desktop.
Bash function to clone a Drupal module or theme. Add this to your .bash_profile
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
# Clone a drupal project | |
function drupalclone { | |
if [ -z "$1" ] | |
then | |
# No parameter passed, show usage | |
echo "Usage: drupalclone [project_name]" | |
else | |
# Clone the project | |
git clone http://git.drupal.org/project/$1.git | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment