Created
April 2, 2012 15:04
-
-
Save chrisjlee/2284197 to your computer and use it in GitHub Desktop.
Bash script to install drush into your user folder on Ubuntu
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 | |
# Install dependencies | |
function base_install { | |
sudo apt-get -y install git-all unzip curl php5-cli php5-gd | |
} | |
# Clone Drush and place in user folder | |
function drush_install { | |
cd /tmp && git clone --branch 7.x-5.x http://git.drupal.org/project/drush.git /home/$user/.drush/drush | |
if [ ! -f /tmp/drush/drush ]; then | |
echo "Could not checkout drush from git" | |
exit 1 | |
fi | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment