Created
October 2, 2014 13:11
-
-
Save opi/99a96bd05fd387a4bed5 to your computer and use it in GitHub Desktop.
Drush OVH
This file contains hidden or 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 | |
# Download drush if needed | |
if [ ! -d drush ] | |
then | |
# Download | |
wget https://github.com/drush-ops/drush/archive/6.4.0.tar.gz | |
# Unpack | |
tar xvzf 6.4.0.tar.gz | |
# Rename | |
mv drush-6.4.0 drush | |
# Clean | |
rm 6.4.0.tar.gz | |
fi | |
# Download complementary files if needed | |
if [ ! -f .drush_bashrc ] | |
then | |
wget https://raw.githubusercontent.com/DuaelFr/drush-ovh/master/.drush_bashrc | |
fi | |
if [ ! -f drush_prepend.php ] | |
then | |
wget https://raw.githubusercontent.com/DuaelFr/drush-ovh/master/drush_prepend.php | |
fi | |
# Add .drush_bashrc call in .bashrc if needed | |
if ! grep -Fxq ".drush_bashrc" .bashrc | |
then | |
echo "" >> .bashrc | |
echo "source .drush_bashrc" >> .bashrc | |
fi | |
# Reload conf | |
source .bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment