diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/drupal.sh.erb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 6cd1994..5536069 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -72,7 +72,7 @@ function drupal_upgrade { fi # Set drupal series - if [ "$new_MAJOR" == "4" ]; then + if [ "$new_major" == "4" ]; then # Get minor versions new_minor="`echo $new | sed -e "s/^$new_major\.//"`" old_minor="`echo $old | sed -e "s/^$old_major\.//"`" @@ -81,9 +81,9 @@ function drupal_upgrade { echo "Minor versions doesn't match" exit 1 fi - drupal_series="$new_MAJOR.$MINOR" + drupal_series="$new_major.$new_minor" else - drupal_series="$new_MAJOR" + drupal_series="$new_major" fi cd $BASE @@ -100,7 +100,7 @@ function drupal_upgrade { done # Legacy stuff for Drupal 4.x.x - if [ "$new_MAJOR" == "4" ]; then + if [ "$new_major" == "4" ]; then rsync -av ../drupal-$old/themes/ themes/ for module in `ls ../drupal-$old/modules`; do if [ -d "../drupal-$old/modules/$module" ]; then @@ -110,7 +110,7 @@ function drupal_upgrade { fi # Copy installation profiles for Drupal 5.x or newer - if [ "$new_MAJOR" != "4" ]; then + if [ "$new_major" != "4" ]; then rsync -av --exclude=default ../drupal-$old/profiles/ profiles/ fi |