Commit 07741bdc authored by helmo's avatar helmo

Issue #2754309: Re-indent

parent 51b97cf0
......@@ -56,58 +56,58 @@ case "$1" in
if [ "$DRUSH_VERSION" != "ignore" ]; then
DRUSH_MAJOR_VERSION=$(echo $DRUSH_VERSION| cut -d. -f1)
DRUSH_MAJOR_VERSION=$(echo $DRUSH_VERSION| cut -d. -f1)
if [ "$DRUSH_VERSION" = "stable" ]; then
if [ "$DRUSH_VERSION" = "stable" ]; then
DRUSH_PHAR_URL="http://files.drush.org/drush.phar"
DRUSH_PHAR_URL="http://files.drush.org/drush.phar"
elif [ "$DRUSH_VERSION" = "unstable" ]; then
elif [ "$DRUSH_VERSION" = "unstable" ]; then
DRUSH_PHAR_URL="http://files.drush.org/drush-unstable.phar"
DRUSH_PHAR_URL="http://files.drush.org/drush-unstable.phar"
elif [ "$DRUSH_MAJOR_VERSION" -ge "8" ]; then
elif [ "$DRUSH_MAJOR_VERSION" -ge "8" ]; then
DRUSH_PHAR_URL="https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar"
DRUSH_PHAR_URL="https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar"
fi
fi
if [ -n "$DRUSH_PHAR_URL" ]; then
if [ -n "$DRUSH_PHAR_URL" ]; then
curl -SsL $DRUSH_PHAR_URL -o drush
chmod +x drush
curl -SsL $DRUSH_PHAR_URL -o drush
chmod +x drush
DRUSH_PATH="/usr/local/bin/drush"
DRUSH_PATH="/usr/local/bin/drush"
# Rename an old drush executable.
if [ -f $DRUSH_PATH ]; then
mv $DRUSH_PATH $DRUSH_PATH-old-$(date +'%Y-%m-%d')
fi
# Rename an old drush executable.
if [ -f $DRUSH_PATH ]; then
mv $DRUSH_PATH $DRUSH_PATH-old-$(date +'%Y-%m-%d')
fi
mv drush $DRUSH_PATH
mv drush $DRUSH_PATH
else # Drush versions prior to 8 aren't available as .phar's.
else # Drush versions prior to 8 aren't available as .phar's.
# Install composer.
COMPOSER_HOME="$HOME/.composer"
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
# Install composer.
COMPOSER_HOME="$HOME/.composer"
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
# Install Drush.
su -c "composer global require drush/drush:$DRUSH_VERSION" aegir
# Install Drush.
su -c "composer global require drush/drush:$DRUSH_VERSION" aegir
# Add composer's bin dir to the $PATH.
echo "export PATH=\"\$HOME/.composer/vendor/bin:\$PATH\"" >> ~aegir/.bashrc
# Add composer's bin dir to the $PATH.
echo "export PATH=\"\$HOME/.composer/vendor/bin:\$PATH\"" >> ~aegir/.bashrc
# Rename an old drush executable.
if [ -f /usr/local/bin/drush ]; then
mv /usr/local/bin/drush /usr/local/bin/drush-old-$(date +'%Y-%m-%d')
fi
# Rename an old drush executable.
if [ -f /usr/local/bin/drush ]; then
mv /usr/local/bin/drush /usr/local/bin/drush-old-$(date +'%Y-%m-%d')
fi
# Symlink Drush for other users to use.
ln -s ~aegir/.composer/vendor/bin/drush /usr/local/bin
# Symlink Drush for other users to use.
ln -s ~aegir/.composer/vendor/bin/drush /usr/local/bin
fi
fi
fi
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment