Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Created April 2, 2012 15:04
Show Gist options
  • Save chrisjlee/2284197 to your computer and use it in GitHub Desktop.
Save chrisjlee/2284197 to your computer and use it in GitHub Desktop.
Bash script to install drush into your user folder on Ubuntu
#!/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